Revert "Fix crash on disconnection of client application" 19/221919/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 8 Jan 2020 07:44:49 +0000 (16:44 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 8 Jan 2020 08:19:57 +0000 (17:19 +0900)
This reverts commit 86914360f22cd5b2c9f8ec23158da13eb983c6a7.

Change-Id: I5c325c94dd1fac0989ec5886ece564cbb5f503be

src/autofill-daemon.c

index a8aa3cf..5187945 100644 (file)
@@ -199,17 +199,6 @@ static void __client_create(rpc_port_stub_AutofillAppPort_context_h context,
     free(sender);
 }
 
-static gboolean __client_remove_cb(void *data)
-{
-    rpc_port_stub_AutofillAppPort_context_h context = data;
-
-    LOGD("client remove callback (%p)", context);
-
-    __remove_client(context);
-
-    return false;
-}
-
 static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context,
         void *user_data)
 {
@@ -223,7 +212,7 @@ static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context,
     LOGD("[__RPC_PORT__] sender(%s)", sender);
     free(sender);
 
-    g_idle_add(__client_remove_cb, context);
+    __remove_client(context);
 }
 
 static int __client_register(rpc_port_stub_AutofillAppPort_context_h context,