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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user