-Perform null check and add exception logging in RuleSet.

-Explicitly recognize connection termination on ServerOrder.Deserialize()
-Use explicit exception type for SDL2HardwareCursor failures.
This commit is contained in:
Peter Antal
2018-02-25 12:36:57 -08:00
committed by Paul Chote
parent f351f0346f
commit 8fa94c5301
3 changed files with 15 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ namespace OpenRA.Server
byte b;
switch (b = r.ReadByte())
{
case 0xbf:
case 0xff:
Console.WriteLine("This isn't a server order.");
return null;