Check if an event is initialized before calling event_del().
Libevent prints a warning to stderr if we do that.
This commit is contained in:
parent
931e30f91a
commit
8ddcad5fa1
5 changed files with 12 additions and 6 deletions
|
|
@ -228,5 +228,6 @@ void init_requests(void) {
|
|||
void exit_requests(void) {
|
||||
splay_delete_tree(past_request_tree);
|
||||
|
||||
event_del(&past_request_event);
|
||||
if(timeout_initialized(&past_request_event))
|
||||
event_del(&past_request_event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue