This commit is contained in:
_nebula 2023-03-08 23:16:07 +00:00
parent 22b93c400a
commit 90d5a01471

View File

@ -52,7 +52,15 @@ public static class QSBMessageManager
}
else
{
msg.To.GetNetworkConnection().Send<Wrapper>(msg);
var connection = msg.To.GetNetworkConnection();
if (connection == default)
{
DebugLog.ToConsole($"Warning - Tried to handle message from disconnected(?) player.", MessageType.Warning);
return;
}
connection.Send<Wrapper>(msg);
}
}