From: Sangyoon Jang Date: Tue, 8 Nov 2016 08:45:55 +0000 (+0900) Subject: Remove auto unsubscribing request event callback X-Git-Tag: submit/tizen_3.0/20161107.133644^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F51%2F96251%2F1;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git 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 --- 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,