QSBWorldSync: cancel tasks after checking dictionaries

This commit is contained in:
JohnCorby 2022-02-25 10:00:57 -08:00
parent 3d7a1ed6af
commit adbeef6caf

View File

@ -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;