Skip to content

Commit

Permalink
Fixed|Multiplayer: Joining fails with a message "already joined"
Browse files Browse the repository at this point in the history
If the game mode did not change, nobody was making sure that the
current MP game was disconnected.

IssueID #1884
  • Loading branch information
skyjake committed Feb 5, 2015
1 parent 5be63ca commit bacb907
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/client/src/ui/widgets/mpsessionmenuwidget.cpp
Expand Up @@ -64,6 +64,12 @@ DENG_GUI_PIMPL(MPSessionMenuWidget)
BusyMode_FreezeGameForBusyMode();
ClientWindow::main().taskBar().close();

// Automatically leave the current MP game.
if(netGame && isClient)
{
ClientApp::serverLink().disconnect();
}

App_ChangeGame(App_Games().byIdentityKey(gameId), false /*no reload*/);
Con_Execute(CMDS_DDAY, cmd.toLatin1(), false, false);
}
Expand Down

0 comments on commit bacb907

Please sign in to comment.