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
+2 -2
View File
@@ -435,7 +435,7 @@ ServerApp::_HandleMessage(int32 code, const void* data, size_t size)
request.SendReply(status, &reply, sizeof(reply));
break;
}
case SERVER_RELEASE_NODE_ALL:
{
const server_release_node_request& request
@@ -952,7 +952,7 @@ ServerApp::MessageReceived(BMessage* msg)
gNodeManager->CleanupDormantFlavorInfos();
team_id id;
if (msg->FindInt32("team", &id) == B_OK
if (msg->FindInt32("be:team", &id) == B_OK
&& gAppManager->HasTeam(id)) {
gAppManager->UnregisterTeam(id);
}