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

Commit 58bfd3df 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: If9176f169580e66b84667b6f225a5fb89a796987
parents cb848752 492a8e6c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -550,6 +550,11 @@ final class WifiDisplayController implements DumpUtils.Dump {

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