mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +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