Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2afe0611 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am e6e81004: Merge "Cleanup on async disconnect and finalize" into jb-mr1-dev

* commit 'e6e81004':
  Cleanup on async disconnect and finalize
parents 18e9575c e6e81004
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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();
        }
    }
}