Removed MESSAGE_BIND_PROFILE_SERVICE messages on unbind

am: c7dda10ee9

Change-Id: I49e5669a037080089b7be345d8dfb32744a5525a
This commit is contained in:
Pavlin Radoslavov
2016-09-23 00:18:04 +00:00
committed by android-build-merger

View File

@@ -707,6 +707,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
if (mUnbinding) return;
mUnbinding = true;
mHandler.removeMessages(MESSAGE_BLUETOOTH_STATE_CHANGE);
mHandler.removeMessages(MESSAGE_BIND_PROFILE_SERVICE);
if (mBluetooth != null) {
//Unregister callback object
try {