Remove the obex unregister function 32/244032/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 14 Sep 2020 07:51:59 +0000 (16:51 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 14 Sep 2020 07:51:59 +0000 (16:51 +0900)
The previous code removes the obex server agent, when the interface
is removed. But the obex agent should unregister called obex deinit
function.

Change-Id: Ice17b1be0f89b133d246b5c180d5b1469355625d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/services/obex/bt-service-obex-event-receiver.c

index efa24cf..b41fe31 100644 (file)
@@ -457,10 +457,12 @@ static  void __bt_manager_event_filter(GDBusConnection *connection,
                        }
                g_variant_unref(value);
        } else if (strcasecmp(signal_name, "InterfacesRemoved") == 0) {
+#if 0
                        if (TIZEN_FEATURE_OPP_SUPPORTED) {
                                if (_bt_unregister_obex_server() != BLUETOOTH_ERROR_NONE)
                                        BT_ERR("Fail to unregister obex server");
                        }
+#endif
        } else if (strcasecmp(signal_name, "NameOwnerChanged") == 0) {
                gboolean value;
                char *name = NULL;