Fix Session.Deserialize error handling.
This commit is contained in:
@@ -846,17 +846,16 @@ namespace OpenRA.Mods.Common.Server
|
||||
return true;
|
||||
}
|
||||
|
||||
var lobbyInfo = Session.Deserialize(s);
|
||||
if (lobbyInfo == null)
|
||||
try
|
||||
{
|
||||
server.LobbyInfo = Session.Deserialize(s);
|
||||
server.SyncLobbyInfo();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
server.SendOrderTo(conn, "Message", "Invalid Lobby Info Sent");
|
||||
return true;
|
||||
}
|
||||
|
||||
server.LobbyInfo = lobbyInfo;
|
||||
|
||||
server.SyncLobbyInfo();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user