- timermanager: don't set stoptime for timers without a stop-event

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-06-21 10:31:22 +02:00
committed by Thilo Graf
parent 980e293517
commit 57ff49c321

View File

@@ -332,7 +332,7 @@ int CTimerManager::modifyEvent(int peventID, time_t announceTime, time_t alarmTi
CTimerEvent *event = events[peventID]; CTimerEvent *event = events[peventID];
event->announceTime = announceTime; event->announceTime = announceTime;
event->alarmTime = alarmTime; event->alarmTime = alarmTime;
event->stopTime = stopTime; event->stopTime = (event->eventType == CTimerd::TIMER_RECORD) ? stopTime : 0;
if(event->eventState==CTimerd::TIMERSTATE_PREANNOUNCE) if(event->eventState==CTimerd::TIMERSTATE_PREANNOUNCE)
event->eventState = CTimerd::TIMERSTATE_SCHEDULED; event->eventState = CTimerd::TIMERSTATE_SCHEDULED;
event->eventRepeat = evrepeat; event->eventRepeat = evrepeat;