mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02: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;
|
WSANETWORKEVENTS events;
|
||||||
GIOCondition condition;
|
GIOCondition condition;
|
||||||
|
|
||||||
if (WSAEnumNetworkEvents (socket->priv->fd,
|
if (!socket->priv->closed &&
|
||||||
|
WSAEnumNetworkEvents (socket->priv->fd,
|
||||||
socket->priv->event,
|
socket->priv->event,
|
||||||
&events) == 0)
|
&events) == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user