From: Sung-jae Park Date: Wed, 12 Jun 2013 11:28:10 +0000 (+0900) Subject: Before disconnecting from the client, delete all disconnected callback. X-Git-Tag: submit/tizen_mobile/20150527.071719~1^2~30^2~14^2~63^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e485e67f9e858359abf6af2f825b370046e5041f;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Before disconnecting from the client, delete all disconnected callback. [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 --- diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index f5c8a05..96a7220 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -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 diff --git a/src/client.c b/src/client.c index b0ad235..102e07b 100644 --- a/src/client.c +++ b/src/client.c @@ -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; }