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

Commit c6643b14 authored by Chienyuan's avatar Chienyuan Committed by Chienyuan Huang
Browse files

PAN: fix NEP when stop

Bug: 222672023
Tag: #refactor
Test: manual
Change-Id: Id1effce3e2fe2e8d508d8472f51328a4fdf1f9ac
parent 1e33487f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -168,6 +168,10 @@ public class PanService extends ProfileService {

    @Override
    protected boolean stop() {
        if (!mStarted) {
            Log.w(TAG, "stop() called before start()");
            return true;
        }
        mAdapterService = null;
        mTetheringManager.unregisterTetheringEventCallback(mTetheringCallback);
        mHandler.removeCallbacksAndMessages(null);