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

Commit c73945bd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot." into qt-qpr1-dev

parents 22f1bf64 166f2569
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -3215,6 +3215,7 @@ public class WifiManager {

        private final CloseGuard mCloseGuard = CloseGuard.get();
        private final WifiConfiguration mConfig;
        private boolean mClosed = false;

        /** @hide */
        @VisibleForTesting
@@ -3230,8 +3231,13 @@ public class WifiManager {
        @Override
        public void close() {
            try {
                synchronized (mLock) {
                    if (!mClosed) {
                        mClosed = true;
                        stopLocalOnlyHotspot();
                        mCloseGuard.close();
                    }
                }
            } catch (Exception e) {
                Log.e(TAG, "Failed to stop Local Only Hotspot.");
            }