Fix human error 66/235366/1
authorinjun.yang <injun.yang@samsung.com>
Fri, 29 May 2020 04:38:05 +0000 (13:38 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 4 Jun 2020 06:12:52 +0000 (15:12 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem]
[Cause & Measure]
[Checking Method]

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I0d27b3fd2a583e807c5c2076f42290271a04b3ac
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/bluez_hal/src/bt-hal-event-receiver.c
bt-service-adaptation/services/obex/bt-service-obex-event-receiver.c

index bc9386e..ad07d3b 100644 (file)
@@ -1401,12 +1401,12 @@ static int __bt_hal_register_gatt_subscribe_signal(GDBusConnection *conn,
                                        NULL, NULL);
                }
        } else {
-               if (subs_gatt_char_id == -1) {
+               if (subs_gatt_char_id != -1) {
                        g_dbus_connection_signal_unsubscribe(conn,
                                        subs_gatt_char_id);
                        subs_gatt_char_id = -1;
                }
-               if (subs_gatt_service_id == -1) {
+               if (subs_gatt_service_id != -1) {
                        g_dbus_connection_signal_unsubscribe(conn,
                                        subs_gatt_service_id);
                        subs_gatt_service_id = -1;
index 8d25d57..0b5614f 100644 (file)
@@ -469,7 +469,7 @@ static  void __bt_manager_event_filter(GDBusConnection *connection,
                g_variant_get(parameters, "(&o@a{sa{sv}})", &obj_path, &value);
 
                if (strcasecmp(obj_path, BT_BLUEZ_HCI_PATH) == 0)
-                       if (!TIZEN_FEATURE_BT_USB_DONGLE) {
+                       if (TIZEN_FEATURE_BT_USB_DONGLE) {
                                if (_bt_register_obex_server() != BLUETOOTH_ERROR_NONE)
                                        BT_ERR("Fail to init obex server");
                        }