From 03b0675ff3948521ddabf17293d5add3bc767f68 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Tue, 8 Nov 2016 17:45:55 +0900 Subject: [PATCH] Remove auto unsubscribing request event callback Now client can listen multiple callbacks for one reqkey, so this auto removing logic should be modified. This commit removes this logic temporarily. Change-Id: Ie7219e04c33d1291468087df9f896f6057f8d677 Signed-off-by: Sangyoon Jang --- client/src/pkgmgr_client_connection.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/client/src/pkgmgr_client_connection.c b/client/src/pkgmgr_client_connection.c index 6a179a0..16454cf 100644 --- a/client/src/pkgmgr_client_connection.c +++ b/client/src/pkgmgr_client_connection.c @@ -224,17 +224,7 @@ static void __signal_handler(GDBusConnection *conn, const gchar *sender_name, else if (cb_info->size_info_cb) __handle_size_info_callback(cb_info, pkgid, val); - /* for request, unsubscribe if end signal received */ - if (cb_info->req_key && - (strcmp(key, "end") == 0 || strcmp(val, "end") == 0)) { - g_dbus_connection_signal_unsubscribe(cb_info->client->conn, - cb_info->sid); - cb_info->client->cb_info_list = g_list_remove( - cb_info->client->cb_info_list, - cb_info); - free(cb_info->req_key); - free(cb_info); - } + /* TODO: unsubscribe request callback */ } int pkgmgr_client_connection_set_callback(struct pkgmgr_client_t *pc, -- 2.34.1