mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +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;
|
GSocketSourceFunc func = (GSocketSourceFunc)callback;
|
||||||
GSocketSource *socket_source = (GSocketSource *)source;
|
GSocketSource *socket_source = (GSocketSource *)source;
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
socket_source->pollfd.revents = update_condition (socket_source->socket);
|
||||||
|
#endif
|
||||||
|
|
||||||
return (*func) (socket_source->socket,
|
return (*func) (socket_source->socket,
|
||||||
socket_source->pollfd.revents & socket_source->condition,
|
socket_source->pollfd.revents & socket_source->condition,
|
||||||
user_data);
|
user_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user