Before disconnecting from the client, delete all disconnected callback.
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 12 Jun 2013 11:28:10 +0000 (20:28 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 12 Jun 2013 11:28:10 +0000 (20:28 +0900)
[model] Redwood
[binary_type] AP
[customer] Docomo/Orange/Open
[issue#] N/A
[problem] disconnected callback will be called when tries to close a socket.
[cause] com-core is changed.
[solution] delete disconnected callback first before close a socket.
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I321604449e8afc62b551b09406f2e26d50193eda

packaging/liblivebox-viewer.spec
src/client.c

index f5c8a05..96a7220 100644 (file)
@@ -1,6 +1,6 @@
 Name: liblivebox-viewer
 Summary: Library for developing the application.
-Version: 0.13.4
+Version: 0.13.5
 Release: 1
 Group: HomeTF/Livebox
 License: Flora License
index b0ad235..102e07b 100644 (file)
@@ -1385,9 +1385,9 @@ int client_fini(void)
        ret = vconf_ignore_key_changed(VCONFKEY_MASTER_STARTED, master_started_cb);
        if (ret < 0)
                DbgPrint("Ignore vconf key: %d\n", ret);
-       com_core_packet_client_fini(s_info.fd);
        com_core_del_event_callback(CONNECTOR_DISCONNECTED, disconnected_cb, NULL);
        com_core_del_event_callback(CONNECTOR_CONNECTED, connected_cb, NULL);
+       com_core_packet_client_fini(s_info.fd);
        s_info.fd = -1;
        return LB_STATUS_SUCCESS;
 }