Commit d16fb797 authored by Max Kellermann's avatar Max Kellermann

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.
parent c38f29ce
......@@ -2,6 +2,7 @@ ver 0.18.13 (not yet released)
* decoder
- dsdiff, dsf: fix endless loop on malformed file
- ffmpeg: support ffmpeg/libav version 11
* fix state file saver
* fix build failure on Darwin
ver 0.18.12 (2014/07/30)
......
......@@ -64,7 +64,9 @@ TimeoutMonitor::ScheduleSeconds(unsigned s)
void
TimeoutMonitor::Run()
{
#ifndef USE_EPOLL
#ifdef USE_EPOLL
active = true;
#else
Cancel();
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment