Commit ba884c85 authored by Aurelio Colosimo's avatar Aurelio Colosimo

unset timer after it is expired

parent 32445ef9
......@@ -70,8 +70,10 @@ int posix_timer_expired(struct pp_timer *tm)
now = time(NULL);
if (tm->start + tm->interval < (uint32_t)now)
if (tm->start + tm->interval < (uint32_t)now) {
tm->start = 0;
return 1;
}
return 0;
}
......
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