From 54c7dd3136c59e766932499778db17819889b556 Mon Sep 17 00:00:00 2001 From: acgnhik Date: Mon, 1 Aug 2022 12:26:41 +0800 Subject: [PATCH] fix: fix space monitor fix #103 --- src/blrec/disk_space/space_monitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blrec/disk_space/space_monitor.py b/src/blrec/disk_space/space_monitor.py index ef2ad72..f6f0e12 100644 --- a/src/blrec/disk_space/space_monitor.py +++ b/src/blrec/disk_space/space_monitor.py @@ -52,6 +52,8 @@ class SpaceMonitor( self.enable() def _do_enable(self) -> None: + if self._check_interval <= 0: + return asyncio.create_task(self.start()) logger.debug('Enabled space monitor')