diff options
author | Ole André Vadla Ravnås <oleavr@gmail.com> | 2010-09-26 14:29:44 +0200 |
---|---|---|
committer | Ole André Vadla Ravnås <oleavr@gmail.com> | 2021-01-05 21:20:34 +0100 |
commit | d01588f37eb7cadc6d96bdd4a54cfda804dce4e5 (patch) | |
tree | 00ff33d13ddfd245c81cf6a576f0a034cc7efbfd /gio | |
parent | 01b77666bc52d7ef2c4c20319153be1165f8643d (diff) | |
download | glib-d01588f37eb7cadc6d96bdd4a54cfda804dce4e5.tar.gz |
gsocket: Don't bother updating select mask if socket is closed
Diffstat (limited to 'gio')
-rw-r--r-- | gio/gsocket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gsocket.c b/gio/gsocket.c index 5d8ecfb9c..e128c91b8 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -3790,6 +3790,9 @@ update_select_events (GSocket *socket) GList *l; WSAEVENT event; + if (socket->priv->closed) + return; + ensure_event (socket); event_mask = 0; |