summaryrefslogtreecommitdiffstats
path: root/module/thread_list.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-03-30 15:49:01 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-03-30 15:49:01 +0200
commitd56fd050ced8c31eabae7a1ceabe8adaeec6b3bd (patch)
tree8d6329b93957ca5848f01f76c69d107268f7ad18 /module/thread_list.py
parentnew server method (get_config) (diff)
downloadpyload-d56fd050ced8c31eabae7a1ceabe8adaeec6b3bd.tar.xz
fixes #64
Diffstat (limited to 'module/thread_list.py')
-rw-r--r--module/thread_list.py6
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()