]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Whoops; in this context the EV_TIMEOUT flag is needed
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2015 13:53:16 +0000 (08:53 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2015 13:53:16 +0000 (08:53 -0500)
src/or/main.c

index 9fc60350761e4494905e330c610ee407412eeb5b..afcb313574f0a44c0142d389060a0e20c5074b06 100644 (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);
 }