Hi, I've encountered the error which you can see in the title in server logs. I get this error when shutting down server from code, after the game ends. These lines of code are responsible for shutting the server down:
if (NetworkManagerLobby.Instance.connType != "host" && NetworkManagerLobby.Instance.connType != "remoteClient") { StartCoroutine(nameof(AutomatedServerShutdown)); }
private IEnumerator AutomatedServerShutdown() { yield return new WaitForSeconds(10f); //NetworkManagerLobby.Instance.StopServer(); NetworkManagerLobby.Instance.OnApplicationQuit(); }
public override void OnApplicationQuit() { base.OnApplicationQuit(); NetworkServer.Shutdown(); }
I have no idea why this issue is present.