Whoops; in this context the EV_TIMEOUT flag is needed

This commit is contained in:
Nick Mathewson 2015-11-17 08:53:16 -05:00
parent c113d19b53
commit b91bd27e6f

View File

@ -1367,7 +1367,7 @@ initialize_periodic_events(void)
NAMED_CALLBACK(check_dns_honesty);
struct timeval one_second = { 1, 0 };
event_base_once(tor_libevent_get_base(), -1, 0,
event_base_once(tor_libevent_get_base(), -1, EV_TIMEOUT,
initialize_periodic_events_cb, NULL,
&one_second);
}