mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
timerd/timerd: don't let getSleeptimerID return an already terminated id
Origin commit data
------------------
Branch: ni/coolstream
Commit: 787ab2e554
Author: martii <m4rtii@gmx.de>
Date: 2013-12-22 (Sun, 22 Dec 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -63,8 +63,8 @@ bool timerd_parse_command(CBasicMessage::Header &rmsg, int connfd)
|
||||
{
|
||||
for (pos = events.begin(); pos != events.end(); ++pos)
|
||||
{
|
||||
printf("ID: %u type: %u\n",pos->second->eventID,pos->second->eventType);
|
||||
if(pos->second->eventType == CTimerd::TIMER_SLEEPTIMER)
|
||||
// printf("ID: %u type: %u\n",pos->second->eventID,pos->second->eventType);
|
||||
if(pos->second->eventType == CTimerd::TIMER_SLEEPTIMER && pos->second->eventState != CTimerd::TIMERSTATE_TERMINATED)
|
||||
{
|
||||
rspGetSleeptimer.eventID = pos->second->eventID;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user