diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-17 14:03:52 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-17 14:03:52 +0200 |
commit | 705d0e5163876c94b9b90a440eb38b152bcba1e0 (patch) | |
tree | c48a726a761e8ffd8e88b62ac5eae598984d985a /module/FileDatabase.py | |
parent | hotfile (diff) | |
download | pyload-705d0e5163876c94b9b90a440eb38b152bcba1e0.tar.xz |
rs fix, more cleanup stuff
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 1ac83cd21..cdb939529 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -957,7 +957,7 @@ class PyFile(): def __repr__(self): return "PyFile %s: %s@%s" % (self.id, self.name, self.pluginname) - + def initPlugin(self): """ inits plugin instance """ if not self.plugin: @@ -1029,8 +1029,9 @@ class PyFile(): if self.plugin and self.plugin.req: self.plugin.req.abort = True sleep(0.1) - self.abort = False - if self.plugin and self.plugin.req: self.plugin.req.abort = False + self.abort = False + if hasattr(self, "plugin") and self.plugin and self.plugin.req: self.plugin.req.abort = False + self.release() def finishIfDone(self): """set status to finish and release file if every thread is finished with it""" |