summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oleavr@gmail.com>2010-09-26 14:29:44 +0200
committerOle André Vadla Ravnås <oleavr@gmail.com>2021-01-05 21:20:34 +0100
commitd01588f37eb7cadc6d96bdd4a54cfda804dce4e5 (patch)
tree00ff33d13ddfd245c81cf6a576f0a034cc7efbfd /gio
parent01b77666bc52d7ef2c4c20319153be1165f8643d (diff)
downloadglib-d01588f37eb7cadc6d96bdd4a54cfda804dce4e5.tar.gz
gsocket: Don't bother updating select mask if socket is closed
Diffstat (limited to 'gio')
-rw-r--r--gio/gsocket.c3
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;