mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add a function to schedule a periodic event once, then disable it
This commit is contained in:
@@ -1600,7 +1600,11 @@ rescan_periodic_events(const or_options_t *options)
|
||||
periodic_event_enable(item);
|
||||
} else {
|
||||
log_debug(LD_GENERAL, "Disabling periodic event %s", item->name);
|
||||
periodic_event_disable(item);
|
||||
if (item->flags & PERIODIC_EVENT_FLAG_FLUSH_ON_DISABLE) {
|
||||
periodic_event_flush_and_disable(item);
|
||||
} else {
|
||||
periodic_event_disable(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user