threadsafe

This commit is contained in:
alzeih
2010-07-23 19:03:33 +12:00
committed by Chris Forbes
parent 282d26b844
commit 984e081f3b
5 changed files with 26 additions and 17 deletions

View File

@@ -29,9 +29,7 @@ namespace OpenRA.Widgets.Delegates
};
optionsBG.GetWidget("BUTTON_DISCONNECT").OnMouseUp = mi => {
optionsBG.Visible = false;
if (Game.IsHost)
Server.Server.CloseServer();
optionsBG.Visible = false;
Game.Disconnect();
return true;
};

View File

@@ -80,8 +80,6 @@ namespace OpenRA.Widgets.Delegates
var disconnectButton = lobby.GetWidget("DISCONNECT_BUTTON");
disconnectButton.OnMouseUp = mi =>
{
if (Game.IsHost)
Server.Server.CloseServer();
Game.Disconnect();
return true;
};