Fix the game hanging on close.

This commit is contained in:
2023-07-14 23:48:13 +08:00
parent e7bc9d0294
commit b057ea8074

View File

@@ -26,7 +26,7 @@ namespace Cryville.Crtr.Network {
}
void Update() {
if (!_thread.IsAlive) {
Destroy(gameObject);
enabled = false;
if (_shutdown) Application.Quit();
}
}