From 472f031ae6b607a6690b3b8f8607704103238665 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Tue, 9 Mar 2021 21:35:01 +0100 Subject: [PATCH] Disk space check: Check if already cancelled --- Code/Program.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Code/Program.cs b/Code/Program.cs index 669936b..8166e18 100644 --- a/Code/Program.cs +++ b/Code/Program.cs @@ -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);