Reset state.
This commit is contained in:
@@ -331,6 +331,7 @@ bool Win32Network::GetSocketState(NetworkSocketGroup& group, uint32 index, Netwo
|
|||||||
if (index >= SOCKGROUP_MAXCOUNT)
|
if (index >= SOCKGROUP_MAXCOUNT)
|
||||||
return true;
|
return true;
|
||||||
pollfd* pollptr = (pollfd*)&group.Data[index * SOCKGROUP_ITEMSIZE];
|
pollfd* pollptr = (pollfd*)&group.Data[index * SOCKGROUP_ITEMSIZE];
|
||||||
|
memset(&state, 0, sizeof state);
|
||||||
if (pollptr->revents & POLLERR)
|
if (pollptr->revents & POLLERR)
|
||||||
state.Error = true;
|
state.Error = true;
|
||||||
if (pollptr->revents & POLLHUP)
|
if (pollptr->revents & POLLHUP)
|
||||||
|
|||||||
Reference in New Issue
Block a user