Fix the game hanging on close.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Cryville.Crtr.Network {
|
||||
}
|
||||
void Update() {
|
||||
if (!_thread.IsAlive) {
|
||||
Destroy(gameObject);
|
||||
enabled = false;
|
||||
if (_shutdown) Application.Quit();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user