From d56fd050ced8c31eabae7a1ceabe8adaeec6b3bd Mon Sep 17 00:00:00 2001 From: mkaay Date: Tue, 30 Mar 2010 15:49:01 +0200 Subject: fixes #64 --- module/thread_list.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/thread_list.py') 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() -- cgit v1.2.3