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

Commit 25934a08 authored by Andreas Huber's avatar Andreas Huber
Browse files

Fix wifi display shutdown deadlock.

Change-Id: I77eed39f39c0de6b427c425248ff7d21c051c074
parent 35213f14
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -229,8 +229,6 @@ WifiDisplaySource::PlaybackSession::~PlaybackSession() {
    sp<ISurfaceComposer> service = interface_cast<ISurfaceComposer>(binder);
    CHECK(service != NULL);

    service->connectDisplay(NULL);

    if (mSerializer != NULL) {
        mSerializer->stop();

@@ -243,6 +241,8 @@ WifiDisplaySource::PlaybackSession::~PlaybackSession() {
        mSerializerLooper.clear();
    }

    service->connectDisplay(NULL);

    if (mRTCPSessionID != 0) {
        mNetSession->destroySession(mRTCPSessionID);
    }