Loading android/app/src/com/android/bluetooth/gatt/AdvertiseManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,16 @@ class AdvertiseManager { void cleanup() { logd("advertise clients cleared"); mAdvertiseClients.clear(); if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } } /** Loading android/app/src/com/android/bluetooth/gatt/ScanManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,16 @@ public class ScanManager { mRegularScanClients.clear(); mBatchClients.clear(); mScanNative.cleanup(); if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } } /** Loading Loading
android/app/src/com/android/bluetooth/gatt/AdvertiseManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,16 @@ class AdvertiseManager { void cleanup() { logd("advertise clients cleared"); mAdvertiseClients.clear(); if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } } /** Loading
android/app/src/com/android/bluetooth/gatt/ScanManager.java +10 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,16 @@ public class ScanManager { mRegularScanClients.clear(); mBatchClients.clear(); mScanNative.cleanup(); if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } } /** Loading