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

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

am 2f9c5004: am 44b175c3: Merge "Fix shutdown and eliminate those annoying...

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

* commit '2f9c5004':
  Fix shutdown and eliminate those annoying "failed to post..." logs.
parents d70f5785 2f9c5004
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);