mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
timermanager: don't set stoptime for timers without a stop-event
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 57ff49c321
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-21 (Wed, 21 Jun 2017)
Origin message was:
------------------
- timermanager: don't set stoptime for timers without a stop-event
Signed-off-by: Thilo Graf <dbt@novatux.de>
------------------
This commit was generated by Migit
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