diff options
Diffstat (limited to 'pyload/manager/Thread.py')
-rw-r--r-- | pyload/manager/Thread.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pyload/manager/Thread.py b/pyload/manager/Thread.py index 0acfd4751..b80c5594a 100644 --- a/pyload/manager/Thread.py +++ b/pyload/manager/Thread.py @@ -4,15 +4,13 @@ import os import random import re +import subprocess import threading import time import traceback import pycurl -from random import choice -from subprocess import Popen - from pyload.Datatype import PyFile from pyload.Thread import DecrypterThread, DownloadThread, InfoThread from pyload.network.RequestFactory import getURL @@ -181,7 +179,7 @@ class ThreadManager(object): self.core.log.debug("Old IP: %s" % ip) try: - reconn = Popen(self.core.config.get("reconnect", "method"), bufsize=-1, shell=True) # , stdout=subprocess.PIPE) + reconn = subprocess.Popen(self.core.config.get("reconnect", "method"), bufsize=-1, shell=True) # , stdout=subprocess.PIPE) except Exception: self.core.log.warning(_("Failed executing reconnect script!")) self.core.config.set("reconnect", "activated", False) |