really simple fix for some errors

This commit is contained in:
Mister_Nebula 2022-01-17 21:29:44 +00:00
parent 84947c476b
commit 4838eba387

View File

@ -66,7 +66,7 @@ namespace Mirror.FizzySteam
public override void ClientEarlyUpdate()
{
if (enabled)
if (enabled && client != null && !client.Error)
{
client?.ReceiveData();
}
@ -82,7 +82,7 @@ namespace Mirror.FizzySteam
public override void ClientLateUpdate()
{
if (enabled)
if (enabled && client != null && !client.Error)
{
client?.FlushData();
}