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

Commit 2f9c5004 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 44b175c3: Merge "Fix shutdown and eliminate those annoying "failed to...

am 44b175c3: Merge "Fix shutdown and eliminate those annoying "failed to post..." logs." into jb-mr1-dev

* commit '44b175c3':
  Fix shutdown and eliminate those annoying "failed to post..." logs.
parents 1dcadb46 44b175c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1221,8 +1221,11 @@ sp<WifiDisplaySource::PlaybackSession> WifiDisplaySource::findPlaybackSession(
void WifiDisplaySource::disconnectClient(status_t err) {
    if (mClientSessionID != 0) {
        if (mClientInfo.mPlaybackSession != NULL) {
            looper()->unregisterHandler(mClientInfo.mPlaybackSession->id());
            sp<PlaybackSession> playbackSession = mClientInfo.mPlaybackSession;
            mClientInfo.mPlaybackSession.clear();

            playbackSession->destroy();
            looper()->unregisterHandler(playbackSession->id());
        }

        mNetSession->destroySession(mClientSessionID);