From 21cf9b1f1d380c0da07137d2456a73094aa182e7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 11 Oct 2011 20:04:03 +0200 Subject: closed #402 --- module/lib/pyunrar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/lib') 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 -- cgit v1.2.3