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

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

Merge "Simplify removeNotificationClient"

parents a17c820c a3b09254
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();