Loading android/app/src/com/android/bluetooth/map/BluetoothMnsObexClient.java +12 −9 Original line number Diff line number Diff line Loading @@ -113,6 +113,18 @@ public class BluetoothMnsObexClient { } public void disconnect() { /* should shutdown handler thread first to make sure * handleRegistration won't be called when disconnet */ if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } try { if (mClientSession != null) { mClientSession.disconnect(null); Loading Loading @@ -150,15 +162,6 @@ public class BluetoothMnsObexClient { mObserver.deinit(); mObserver = null; } if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } } private HeaderSet hsConnect = null; Loading Loading
android/app/src/com/android/bluetooth/map/BluetoothMnsObexClient.java +12 −9 Original line number Diff line number Diff line Loading @@ -113,6 +113,18 @@ public class BluetoothMnsObexClient { } public void disconnect() { /* should shutdown handler thread first to make sure * handleRegistration won't be called when disconnet */ if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } try { if (mClientSession != null) { mClientSession.disconnect(null); Loading Loading @@ -150,15 +162,6 @@ public class BluetoothMnsObexClient { mObserver.deinit(); mObserver = null; } if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } } private HeaderSet hsConnect = null; Loading