move unlock before callback is called to avoid deadlock 08/320308/4
authorSukhyungKang <shine.kang@samsung.com>
Wed, 13 Nov 2024 02:23:35 +0000 (11:23 +0900)
committerSukhyungKang <shine.kang@samsung.com>
Wed, 13 Nov 2024 04:54:47 +0000 (13:54 +0900)
Change-Id: If0e4001ae22c2a9913b4e6d902551c9fb5b42b84
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
notification/src/notification_internal.c

index e170a3a70d97afeff370b38e84eb32c96406e186..ff5bf5d79b83462e2c225c1888d5186bb306a84e 100644 (file)
@@ -202,11 +202,13 @@ void notification_call_event_handler_cb(notification_h noti, int event_type)
                return;
        }
 
+       __notification_mutex_unlock();
+
+       WARN("call event callback");
+
        info = g_list_nth_data(find_list, 0);
        info->cb(noti, event_type, info->userdata);
 
-       __notification_mutex_unlock();
-
        WARN("done");
 }
 /* LCOV_EXCL_STOP */