Stopped the errors caused my the server client trying to save
This commit is contained in:
parent
c98bbd72ce
commit
8e4c603cad
1 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,12 @@ namespace SRMultiplayer.Patches
|
|||
{
|
||||
if (!Globals.IsMultiplayer) return;
|
||||
|
||||
NetworkClient.Instance.Disconnect();
|
||||
//only handle the client if the client is the one disconnecting
|
||||
if (!Globals.IsServer)
|
||||
{
|
||||
NetworkClient.Instance.Disconnect();
|
||||
}
|
||||
//if server ahndle the shutdown
|
||||
NetworkServer.Instance.Disconnect();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue