Merge remote-tracking branch 'tor-github/pr/1422' into maint-0.3.5

This commit is contained in:
teor 2019-11-25 12:34:29 +10:00
commit 400cee261e
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 10 additions and 0 deletions

5
changes/ticket32058 Normal file
View File

@ -0,0 +1,5 @@
o Minor bugfixes (mainloop, periodic events):
- Periodic events enabled flag was not unset properly when shutting down tor
cleanly. This had the side effect to not re-enable periodic events when
tor_api.h is used to relaunch tor after a shutdown. Fixes bug 32058;
bugfix on 0.3.3.1-alpha.

View File

@ -137,6 +137,11 @@ periodic_event_destroy(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;
}