[gnio] Only report the requested condition bits in the GSocket source



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]