mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
revents may have been cleared by GMain before dispatch().
See bug #587898.
This commit is contained in:
parent
9e1feb84e2
commit
094e1d5e16
@ -2466,6 +2466,10 @@ socket_source_dispatch (GSource *source,
|
||||
GSocketSourceFunc func = (GSocketSourceFunc)callback;
|
||||
GSocketSource *socket_source = (GSocketSource *)source;
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
socket_source->pollfd.revents = update_condition (socket_source->socket);
|
||||
#endif
|
||||
|
||||
return (*func) (socket_source->socket,
|
||||
socket_source->pollfd.revents & socket_source->condition,
|
||||
user_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user