diff options
author | teor <teor@torproject.org> | 2019-10-21 13:07:39 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-10-21 13:07:39 +1000 |
commit | 04e9e74f1dd4fad7fe9e072253dd51b9c03bebf2 (patch) | |
tree | b5d519ef6b64a9e1f72c3b11cf99504a8fba684b /src | |
parent | 5dbdca011454d1d6c9e83bcc1a970ec3c4f368da (diff) | |
parent | 4a8d4913227ea1d6b9302cda4703516595a3c1b5 (diff) | |
download | tor-04e9e74f1dd4fad7fe9e072253dd51b9c03bebf2.tar.gz tor-04e9e74f1dd4fad7fe9e072253dd51b9c03bebf2.zip |
Merge remote-tracking branch 'tor-github/pr/1422' into maint-0.4.2
Diffstat (limited to 'src')
-rw-r--r-- | src/core/mainloop/periodic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/mainloop/periodic.c b/src/core/mainloop/periodic.c index dbc4553a73..5c2f6f2b36 100644 --- a/src/core/mainloop/periodic.c +++ b/src/core/mainloop/periodic.c @@ -153,6 +153,11 @@ periodic_event_disconnect(periodic_event_item_t *event) { if (!event) return; + + /* First disable the event so we first cancel the event and set its enabled + * flag properly. */ + periodic_event_disable(event); + mainloop_event_free(event->ev); event->last_action_time = 0; } |