Print error logs before execute callback 90/316590/1
authorEunki Hong <eunkiki.hong@samsung.com>
Sat, 14 Dec 2024 05:59:55 +0000 (14:59 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Sat, 14 Dec 2024 05:59:55 +0000 (14:59 +0900)
Since we throw assert at callback if FD_ERROR occured,
we should print error logs before execute callback.

Change-Id: I8f498b020e0f9da505b6ca8847c953b0d2e7d280
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/internal/system/linux/file-descriptor-monitor-ecore.cpp

index 5c89174411d5bdc4a70295584bca8bc72f7f5a0d..4dd8b5334d02cfff323bb4d7a7d70656b4302f57 100644 (file)
@@ -70,8 +70,8 @@ struct FileDescriptorMonitorEcore::Impl
 
     if(ecore_main_fd_handler_active_get(handler, ECORE_FD_ERROR))
     {
-      CallbackBase::Execute(*impl->mCallback, FileDescriptorMonitor::FD_ERROR, impl->mFileDescriptor);
       DALI_LOG_ERROR("ECORE_FD_ERROR occurred on %d\n", impl->mFileDescriptor);
+      CallbackBase::Execute(*impl->mCallback, FileDescriptorMonitor::FD_ERROR, impl->mFileDescriptor);
 
       return ECORE_CALLBACK_CANCEL;
     }