From: INSUN PYO Date: Fri, 11 Oct 2019 08:59:59 +0000 (+0900) Subject: Fixed bug that cleared main_loop in use X-Git-Tag: submit/tizen/20191122.144351~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F215605%2F1;p=platform%2Fcore%2Fpim%2Fcontacts-service.git Fixed bug that cleared main_loop in use The variable main_loop is global and it used in main loop. Thread 1 (LWP 3049): 0 0xf6c75634 in raise () from /lib/libpthread.so.0 1 0xf6ff3774 in g_logv (log_domain=0xf6ff3774 "\300\377\377\352", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x0, args=..., args@entry=...) at gmessages.c:1357 2 0xf6ff3824 in g_log (log_domain=, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=0xf7043a7c "%s: assertion '%s' failed") at gmessages.c:1398 3 0xf6ff3dc0 in g_return_if_fail_warning (log_domain=, pretty_function=, expression=) at gmessages.c:2688 4 0xf736e286 in pims_ipc_svc_run_main_loop (main_loop=0x885c50 ) at /usr/src/debug/pims-ipc-0.1.23/src/pims-ipc-svc.c:182 5 0x00822932 in __server_main () at /usr/src/debug/contacts-service-0.13.75/server/ctsvc_server.c:267 6 0x00822e8c in main (argc=3, argv=0xffd830d4) at /usr/src/debug/contacts-service-0.13.75/server/ctsvc_server.c:385 Change-Id: I97001ea3ed428dcfe6a11f37eb31922e0f905f43 --- diff --git a/server/ctsvc_server.c b/server/ctsvc_server.c index 641ae80..d01839e 100644 --- a/server/ctsvc_server.c +++ b/server/ctsvc_server.c @@ -286,7 +286,6 @@ static int __server_main(void) void ctsvc_server_quit(void) { g_main_loop_quit(main_loop); - main_loop = NULL; } int ctsvc_server_get_timeout_sec(void)