Disk space check: Check if already cancelled

This commit is contained in:
N00MKRAD
2021-03-09 21:35:01 +01:00
parent c34047f54b
commit 472f031ae6

View File

@@ -51,10 +51,8 @@ namespace Flowframes
Logger.Log($"Disk space check for '{drivePath}/': {(mb / 1024f).ToString("0.0")} GB free.", true);
if (mb < (Config.GetInt("minDiskSpaceGb", 6) * 1024))
{
if (!Interpolate.canceled && mb < (Config.GetInt("minDiskSpaceGb", 6) * 1024))
Interpolate.Cancel("Running out of disk space!");
}
}
await Task.Delay(15000);