gsocket: Don't bother updating select mask if socket is closed

This commit is contained in:
Ole André Vadla Ravnås 2010-09-26 14:29:44 +02:00
parent 01b77666bc
commit d01588f37e

View File

@ -3790,6 +3790,9 @@ update_select_events (GSocket *socket)
GList *l; GList *l;
WSAEVENT event; WSAEVENT event;
if (socket->priv->closed)
return;
ensure_event (socket); ensure_event (socket);
event_mask = 0; event_mask = 0;