summaryrefslogtreecommitdiff
path: root/src/or/ntmain.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-03 11:09:44 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-05 12:36:05 -0400
commit39cb04335f9fd5c3268c808bac549f531fe389a3 (patch)
tree493fabac57156ef8fe53304ded4ba50e25adf3dd /src/or/ntmain.c
parentf0d2733b468984a7749fb7d506318200ca19e48f (diff)
downloadtor-39cb04335f9fd5c3268c808bac549f531fe389a3.tar.gz
tor-39cb04335f9fd5c3268c808bac549f531fe389a3.zip
Add wrappers for event_base_loopexit and event_base_loopbreak.
Diffstat (limited to 'src/or/ntmain.c')
-rw-r--r--src/or/ntmain.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/ntmain.c b/src/or/ntmain.c
index ebbe0018bd..e9a299807a 100644
--- a/src/or/ntmain.c
+++ b/src/or/ntmain.c
@@ -24,8 +24,6 @@
#include "main.h"
#include "ntmain.h"
-#include <event2/event.h>
-
#include <windows.h>
#define GENSRV_SERVICENAME "tor"
#define GENSRV_DISPLAYNAME "Tor Win32 Service"
@@ -245,7 +243,8 @@ nt_service_control(DWORD request)
log_notice(LD_GENERAL,
"Got stop/shutdown request; shutting down cleanly.");
service_status.dwCurrentState = SERVICE_STOP_PENDING;
- event_base_loopexit(tor_libevent_get_base(), &exit_now);
+ tor_libevent_exit_loop_after_delay(tor_libevent_get_base(),
+ &exit_now);
return;
}
service_fns.SetServiceStatus_fn(hStatus, &service_status);