aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2015-01-30 14:25:04 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 17:46:54 +0100
commit257e399e533554459063af19decf93c501ab3281 (patch)
treefc6f8ca1c2a4652bb06bda8169f4781d205d322c
parentecore_con: do not try to load /etc/resolv.conf when on windows. (diff)
downloadefl-257e399e533554459063af19decf93c501ab3281.tar.gz
ecore: trigger events on FD_READ, FD_CONNECT and FD_ACCEPT.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/ecore/ecore_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index f939518016..a9f65f752f 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -2254,9 +2254,9 @@ _ecore_main_win32_select(int nfds EINA_UNUSED,
WSAEnumNetworkEvents(sockets[result], objects[result], &network_event);
- if ((network_event.lNetworkEvents & FD_READ) && readfds)
+ if ((network_event.lNetworkEvents & (FD_READ | FD_CONNECT | FD_ACCEPT)) && readfds)
FD_SET(sockets[result], readfds);
- if ((network_event.lNetworkEvents & FD_WRITE) && writefds)
+ if ((network_event.lNetworkEvents & (FD_WRITE | FD_CLOSE)) && writefds)
FD_SET(sockets[result], writefds);
if ((network_event.lNetworkEvents & FD_OOB) && exceptfds)
FD_SET(sockets[result], exceptfds);