Reset state.

This commit is contained in:
Jean-Baptiste Perrier
2021-01-26 20:07:35 +01:00
parent 09049990bd
commit 5f85e9ae96

View File

@@ -331,6 +331,7 @@ bool Win32Network::GetSocketState(NetworkSocketGroup& group, uint32 index, Netwo
if (index >= SOCKGROUP_MAXCOUNT)
return true;
pollfd* pollptr = (pollfd*)&group.Data[index * SOCKGROUP_ITEMSIZE];
memset(&state, 0, sizeof state);
if (pollptr->revents & POLLERR)
state.Error = true;
if (pollptr->revents & POLLHUP)