[gnio] Only report the requested condition bits in the GSocket source
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Only report the requested condition bits in the GSocket source
- Date: Thu, 7 May 2009 13:00:24 -0400 (EDT)
commit 33c9901e149054f87a1c74f9acd1442310464ffa
Author: Alexander Larsson <alexl redhat com>
Date: Thu May 7 18:59:18 2009 +0200
Only report the requested condition bits in the GSocket source
---
gio/gsocket.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 5c3dd20..3da1218 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -2070,7 +2070,8 @@ winsock_dispatch (GSource *source,
GSocketSourceFunc func = (GSocketSourceFunc)callback;
GWinsockSource *winsock_source = (GWinsockSource *)source;
- return (*func) (user_data, winsock_source->result_condition);
+ return (*func) (user_data,
+ winsock_source->result_condition & winsock_source->condition);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]