]> tinc-vpn.org Git - tinc/blobdiff - src/event.c
Use a Windows event to stop tinc when running as a service.
[tinc] / src / event.c
index 5e6908f58a2db5150c7bcb83c7e11d21fd8f5768..8f15ebeadd95a3e55fdaab74d812ca93fdd9cba2 100644 (file)
@@ -35,7 +35,7 @@ static const long READ_EVENTS = FD_READ | FD_ACCEPT | FD_CLOSE;
 static const long WRITE_EVENTS = FD_WRITE | FD_CONNECT;
 static DWORD event_count = 0;
 #endif
-static volatile bool running;
+static bool running;
 
 static int io_compare(const io_t *a, const io_t *b) {
 #ifndef HAVE_MINGW