Merge "Cleanup on async disconnect and finalize" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e6e810048e
@@ -1274,6 +1274,7 @@ public class WifiManager {
|
||||
// This will cause all further async API calls on the WifiManager
|
||||
// to fail and throw an exception
|
||||
mAsyncChannel = null;
|
||||
getLooper().quit();
|
||||
break;
|
||||
/* ActionListeners grouped together */
|
||||
case WifiManager.CONNECT_NETWORK_FAILED:
|
||||
@@ -1979,4 +1980,12 @@ public class WifiManager {
|
||||
mService.captivePortalCheckComplete();
|
||||
} catch (RemoteException e) {}
|
||||
}
|
||||
|
||||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
mHandler.getLooper().quit();
|
||||
} finally {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user