event/PollGroupWinSelect: add missing return value
Fixes regression from commit 1473d8474f09797516e37fb352457d1de691e90d
This commit is contained in:
parent
871bf3b88f
commit
cb382b1e7d
@ -121,9 +121,10 @@ PollGroupWinSelect::ReadEvents(int timeout_ms) noexcept
|
||||
bool use_sleep = event_set[EVENT_READ].IsEmpty() &&
|
||||
event_set[EVENT_WRITE].IsEmpty();
|
||||
|
||||
PollResultGeneric result;
|
||||
if (use_sleep) {
|
||||
Sleep(timeout_ms < 0 ? INFINITE : (DWORD) timeout_ms);
|
||||
return;
|
||||
return result;
|
||||
}
|
||||
|
||||
SocketSet read_set(event_set[EVENT_READ]);
|
||||
@ -142,7 +143,6 @@ PollGroupWinSelect::ReadEvents(int timeout_ms) noexcept
|
||||
except_set.GetPtr(),
|
||||
timeout_ms < 0 ? nullptr : &tv);
|
||||
|
||||
PollResultGeneric result;
|
||||
if (ret == 0 || ret == SOCKET_ERROR)
|
||||
return result;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user