We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dbf861 + fa3b625 commit e6e8100Copy full SHA for e6e8100
wifi/java/android/net/wifi/WifiManager.java
@@ -1274,6 +1274,7 @@ public void handleMessage(Message message) {
1274
// This will cause all further async API calls on the WifiManager
1275
// to fail and throw an exception
1276
mAsyncChannel = null;
1277
+ getLooper().quit();
1278
break;
1279
/* ActionListeners grouped together */
1280
case WifiManager.CONNECT_NETWORK_FAILED:
@@ -1979,4 +1980,12 @@ public void captivePortalCheckComplete() {
1979
1980
mService.captivePortalCheckComplete();
1981
} catch (RemoteException e) {}
1982
}
1983
+
1984
+ protected void finalize() throws Throwable {
1985
+ try {
1986
+ mHandler.getLooper().quit();
1987
+ } finally {
1988
+ super.finalize();
1989
+ }
1990
1991
0 commit comments