Do not disconnect when networking has not been started yet

This commit is contained in:
Pascal Serrarens 2022-02-24 16:50:35 +01:00
parent b7dd213e3a
commit 145bb2e8bf

View File

@ -183,6 +183,7 @@ namespace Passer {
} }
#endif #endif
private void OnDestroy() { private void OnDestroy() {
if (starter != null)
starter.StopClient(); starter.StopClient();
} }
} }