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

Commit c2dc1c4e authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Simplify removeNotificationClient"

parents eb70fe50 538529b9
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1029,12 +1029,7 @@ void AudioFlinger::removeNotificationClient(pid_t pid)
{
    Mutex::Autolock _l(mLock);

    ssize_t index = mNotificationClients.indexOfKey(pid);
    if (index >= 0) {
        sp <NotificationClient> client = mNotificationClients.valueFor(pid);
        ALOGV("removeNotificationClient() %p, pid %d", client.get(), pid);
    mNotificationClients.removeItem(pid);
    }

    ALOGV("%d died, releasing its sessions", pid);
    size_t num = mAudioSessionRefs.size();