mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
QSBWorldSync: cancel tasks after checking dictionaries
This commit is contained in:
parent
3d7a1ed6af
commit
adbeef6caf
@ -106,10 +106,6 @@ public static class QSBWorldSync
|
||||
return;
|
||||
}
|
||||
|
||||
_cts.Cancel();
|
||||
_cts.Dispose();
|
||||
_cts = null;
|
||||
|
||||
if (_managersBuilding.Count > 0)
|
||||
{
|
||||
DebugLog.DebugWrite($"{_managersBuilding.Count} managers still building", MessageType.Warning);
|
||||
@ -120,6 +116,10 @@ public static class QSBWorldSync
|
||||
DebugLog.DebugWrite($"{_objectsIniting.Count} objects still initing", MessageType.Warning);
|
||||
}
|
||||
|
||||
_cts.Cancel();
|
||||
_cts.Dispose();
|
||||
_cts = null;
|
||||
|
||||
_managersBuilding.Clear();
|
||||
_objectsIniting.Clear();
|
||||
AllObjectsAdded = false;
|
||||
|
Loading…
Reference in New Issue
Block a user