diff options
Diffstat (limited to 'module/thread_list.py')
-rw-r--r-- | module/thread_list.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/thread_list.py b/module/thread_list.py index 13dba309e..000e86d27 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -41,7 +41,7 @@ class Thread_List(object): self.lock = RLock() self.py_downloading = [] # files downloading self.occ_plugins = [] #occupied plugins - self.pause = False + self.pause = True self.reconnecting = False self.select_thread() @@ -69,6 +69,10 @@ class Thread_List(object): if not self.parent.server_methods.is_time_download() or self.pause or self.reconnecting or self.list.queueEmpty(): #conditions when threads dont download return None + + if self.parent.freeSpace() < self.parent.config["general"]["min_free_space"]: + self.parent.logger.debug("min free space exceeded") + return None self.init_reconnect() |