threadsafe
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user