mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- timermanager: don't set stoptime for timers without a stop-event
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user