diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-11 20:04:03 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-11 20:04:03 +0200 |
commit | 21cf9b1f1d380c0da07137d2456a73094aa182e7 (patch) | |
tree | 6c4b84cdccd3a4ecba018d176c5cadb103f5e3e7 /module/lib | |
parent | working restart core method (diff) | |
download | pyload-21cf9b1f1d380c0da07137d2456a73094aa182e7.tar.xz |
closed #402
Diffstat (limited to 'module/lib')
-rw-r--r-- | module/lib/pyunrar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/lib/pyunrar.py b/module/lib/pyunrar.py index d873ef9bc..f21d350c1 100644 --- a/module/lib/pyunrar.py +++ b/module/lib/pyunrar.py @@ -129,13 +129,13 @@ class Unrar(): args.append("-p-") args.append(f) p = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, bufsize=-1) - ret = p.wait() #@TODO blocks for big archives with many files + o = p.communicate()[0] + ret = p.poll() if ret == 3: self.headerEncrypted = True raise WrongPasswordError() elif ret in (0,1) and password: self.headerEncrypted = False - o = p.stdout.read() inList = False infos = {} nameLine = False |