diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-11-27 18:50:31 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-11-27 18:50:31 +0300 |
commit | eb5c49ead9f08c424679069a9c5b99014f76b478 (patch) | |
tree | 1b6a00e4906365c6728890bb7673a45bc20f85dd | |
parent | 40160621a90f8a43c6a1b2b51445526ed0aac1f0 (diff) | |
download | unit-eb5c49ead9f08c424679069a9c5b99014f76b478.tar.gz unit-eb5c49ead9f08c424679069a9c5b99014f76b478.tar.bz2 |
Timer should be marked as it is not in tree after deletion.
This closes #64 issue on GitHub.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_timer.c b/src/nxt_timer.c index 5afbcfb2..399f261b 100644 --- a/src/nxt_timer.c +++ b/src/nxt_timer.c @@ -220,6 +220,7 @@ nxt_timer_changes_commit(nxt_event_engine_t *engine) timer->time, timer->state); nxt_rbtree_delete(&timers->tree, &timer->node); + nxt_timer_in_tree_clear(timer); } break; |