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

This commit is contained in:
despair86 2018-08-11 04:48:24 -05:00
parent 4ab9f72415
commit 5f47b335a4

View File

@ -97,8 +97,6 @@ struct llarp_win32_loop : public llarp_ev_loop
{ {
HANDLE iocpfd; HANDLE iocpfd;
bool _running = false;
llarp_win32_loop() : iocpfd(INVALID_HANDLE_VALUE) llarp_win32_loop() : iocpfd(INVALID_HANDLE_VALUE)
{ {
WSADATA wsockd; WSADATA wsockd;
@ -127,7 +125,7 @@ struct llarp_win32_loop : public llarp_ev_loop
if(iocpfd == INVALID_HANDLE_VALUE) if(iocpfd == INVALID_HANDLE_VALUE)
return false; return false;
_running = true;
return true; return true;
} }
@ -331,13 +329,13 @@ struct llarp_win32_loop : public llarp_ev_loop
bool bool
running() const running() const
{ {
return _running; return iocpfd != INVALID_HANDLE_VALUE;
} }
void void
stop() stop()
{ {
_running = false; // still does nothing
} }
}; };