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

Commit 54b69843 authored by Jimmy Chen's avatar Jimmy Chen Committed by Automerger Merge Worker
Browse files

Merge "wfd: release wifi p2p resource on disconnecting from WFD service." into...

Merge "wfd: release wifi p2p resource on disconnecting from WFD service." into sc-dev am: 492a8e6c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14948153

Change-Id: I342bd9de19a51b315012e20b6fdcf21a202fd614
parents d32f01ba 492a8e6c
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -550,6 +550,11 @@ final class WifiDisplayController implements DumpUtils.Dump {


    private void disconnect() {
    private void disconnect() {
        mDesiredDevice = null;
        mDesiredDevice = null;
        mWifiP2pManager = null;
        if (null != mWifiP2pChannel) {
            mWifiP2pChannel.close();
            mWifiP2pChannel = null;
        }
        updateConnection();
        updateConnection();
    }
    }