gsocket: Don't call WSAEnumNetworkEvents if socket is closed

Makes Application Verifier happy.
This commit is contained in:
Ole André Vadla Ravnås 2010-09-26 15:06:25 +02:00
parent d01588f37e
commit 17c53b5f16

View File

@ -3851,7 +3851,8 @@ update_condition_unlocked (GSocket *socket)
WSANETWORKEVENTS events;
GIOCondition condition;
if (WSAEnumNetworkEvents (socket->priv->fd,
if (!socket->priv->closed &&
WSAEnumNetworkEvents (socket->priv->fd,
socket->priv->event,
&events) == 0)
{