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