event/TimeoutMonitor: reset "active" flag before invoking OnTimeout()
The IsActive() method returned true even if the timer was not active, after it completed once. This broke the state file timer, and the state file was not saved periodically.
This commit is contained in:
parent
c38f29ce56
commit
d16fb79708
1
NEWS
1
NEWS
@ -2,6 +2,7 @@ ver 0.18.13 (not yet released)
|
|||||||
* decoder
|
* decoder
|
||||||
- dsdiff, dsf: fix endless loop on malformed file
|
- dsdiff, dsf: fix endless loop on malformed file
|
||||||
- ffmpeg: support ffmpeg/libav version 11
|
- ffmpeg: support ffmpeg/libav version 11
|
||||||
|
* fix state file saver
|
||||||
* fix build failure on Darwin
|
* fix build failure on Darwin
|
||||||
|
|
||||||
ver 0.18.12 (2014/07/30)
|
ver 0.18.12 (2014/07/30)
|
||||||
|
@ -64,7 +64,9 @@ TimeoutMonitor::ScheduleSeconds(unsigned s)
|
|||||||
void
|
void
|
||||||
TimeoutMonitor::Run()
|
TimeoutMonitor::Run()
|
||||||
{
|
{
|
||||||
#ifndef USE_EPOLL
|
#ifdef USE_EPOLL
|
||||||
|
active = true;
|
||||||
|
#else
|
||||||
Cancel();
|
Cancel();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user