media_server: Fix fetching the team_id from the SOME_APP_QUIT message.

Now the buffers of crashed teams will actually be removed from the
media_server. (Was this code just never tested?!)
This commit is contained in:
Augustin Cavalier
2019-08-12 20:26:42 -04:00
parent ec2d11c47c
commit 91af5aa6b6
+1 -1
View File
@@ -952,7 +952,7 @@ ServerApp::MessageReceived(BMessage* msg)
gNodeManager->CleanupDormantFlavorInfos(); gNodeManager->CleanupDormantFlavorInfos();
team_id id; team_id id;
if (msg->FindInt32("team", &id) == B_OK if (msg->FindInt32("be:team", &id) == B_OK
&& gAppManager->HasTeam(id)) { && gAppManager->HasTeam(id)) {
gAppManager->UnregisterTeam(id); gAppManager->UnregisterTeam(id);
} }