mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
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:
parent
4ab9f72415
commit
5f47b335a4
@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user