summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghoon Park <jh9216.park@samsung.com>2015-12-08 20:10:20 +0900
committerJunghoon Park <jh9216.park@samsung.com>2015-12-08 20:10:20 +0900
commit8b2091e155ef1d3f2545679d1ce804363fa9d005 (patch)
treeaa91842ec103ec7d2c01dad665df5f5b91caed04
parent44612ee7133543d9f8a4578034a5ea4d5107ed81 (diff)
downloadlaunchpad-8b2091e155ef1d3f2545679d1ce804363fa9d005.tar.gz
launchpad-8b2091e155ef1d3f2545679d1ce804363fa9d005.tar.bz2
launchpad-8b2091e155ef1d3f2545679d1ce804363fa9d005.zip
Change-Id: I919a23bdebfebf5b827f534d9f50ad05e0ca31cd Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
-rw-r--r--src/launchpad_loader.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/launchpad_loader.c b/src/launchpad_loader.c
index a6cb6b8..0afc78b 100644
--- a/src/launchpad_loader.c
+++ b/src/launchpad_loader.c
@@ -162,15 +162,13 @@ static Eina_Bool __process_fd_handler(void* data, Ecore_Fd_Handler *handler)
exit(-1);
}
- if (ecore_main_fd_handler_active_get(handler, ECORE_FD_ERROR)) {
- _D("[candidate] ECORE_FD_ERROR");
- close(fd);
- exit(-1);
- }
-
if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ)) {
if (__receiver)
__receiver(fd);
+ } else if (ecore_main_fd_handler_active_get(handler, ECORE_FD_ERROR)) {
+ _D("[candidate] ECORE_FD_ERROR");
+ close(fd);
+ exit(-1);
}
return ECORE_CALLBACK_CANCEL;