mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gsocket: Don't call WSAEnumNetworkEvents if socket is closed
Makes Application Verifier happy.
This commit is contained in:
parent
d01588f37e
commit
17c53b5f16
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user