[Bluetooth] Fix for SetPowered issue.
authorTomasz Marciniak <t.marciniak@samsung.com>
Wed, 25 Feb 2015 10:27:56 +0000 (11:27 +0100)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Wed, 25 Feb 2015 15:37:58 +0000 (00:37 +0900)
[Feature] If new state is required success callback
should be called from StateChangedCB().

[Verification] Code compiles without errors.

Change-Id: I830655ea05396f021cf2a0925f07c81d92444008
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/bluetooth/bluetooth_adapter.cc

index 8b335597c7bc390c7bee08ff8d5b37970f352d1c..f00169ca94c4b1fd7304a009fcc655d1badbded1 100644 (file)
@@ -528,6 +528,7 @@ void BluetoothAdapter::SetPowered(const picojson::value& data, picojson::object&
         } else {
             bt_adapter_disable();
         }
+        return;
     }
 
     util::AsyncResponse(callback_handle, ret);