From 5f47b335a400a08799ec1e61202f11c0501fceff Mon Sep 17 00:00:00 2001 From: despair86 Date: Sat, 11 Aug 2018 04:48:24 -0500 Subject: [PATCH] now matches the other platform behaviour, namely, that as long as the event-based queue file descriptor is valid, so is the event loop itself --- llarp/ev_win32.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llarp/ev_win32.hpp b/llarp/ev_win32.hpp index 38768568f..c949c073d 100644 --- a/llarp/ev_win32.hpp +++ b/llarp/ev_win32.hpp @@ -97,8 +97,6 @@ struct llarp_win32_loop : public llarp_ev_loop { HANDLE iocpfd; - bool _running = false; - llarp_win32_loop() : iocpfd(INVALID_HANDLE_VALUE) { WSADATA wsockd; @@ -127,7 +125,7 @@ struct llarp_win32_loop : public llarp_ev_loop if(iocpfd == INVALID_HANDLE_VALUE) return false; - _running = true; + return true; } @@ -331,13 +329,13 @@ struct llarp_win32_loop : public llarp_ev_loop bool running() const { - return _running; + return iocpfd != INVALID_HANDLE_VALUE; } void stop() { - _running = false; + // still does nothing } };