Remove auto unsubscribing request event callback 51/96251/1 accepted/tizen/3.0/common/20161114.081602 accepted/tizen/3.0/ivi/20161110.015543 accepted/tizen/3.0/mobile/20161110.015255 accepted/tizen/3.0/tv/20161110.015421 accepted/tizen/3.0/wearable/20161110.015512 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
authorSangyoon Jang <s89.jang@samsung.com>
Tue, 8 Nov 2016 08:45:55 +0000 (17:45 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Tue, 8 Nov 2016 08:49:36 +0000 (17:49 +0900)
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 <s89.jang@samsung.com>
client/src/pkgmgr_client_connection.c

index 6a179a0..16454cf 100644 (file)
@@ -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,