From 6acbca30b0de51462b1a486c83d936c0c4f5d94e Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 20 Nov 2014 02:32:36 +0100 Subject: Import threading instead thread + thread cleanup --- pyload/plugins/hook/ImageTyperz.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pyload/plugins/hook/ImageTyperz.py') diff --git a/pyload/plugins/hook/ImageTyperz.py b/pyload/plugins/hook/ImageTyperz.py index 1c99d48c1..57a734884 100644 --- a/pyload/plugins/hook/ImageTyperz.py +++ b/pyload/plugins/hook/ImageTyperz.py @@ -6,7 +6,6 @@ import re from base64 import b64encode from pycurl import FORM_FILE, LOW_SPEED_TIME -from thread import start_new_thread from pyload.network.RequestFactory import getURL, getRequest from pyload.plugins.internal.Addon import Hook @@ -121,8 +120,7 @@ class ImageTyperz(Hook): task.handler.append(self) task.data['service'] = self.__name__ task.setWaiting(100) - start_new_thread(self.processCaptcha, (task,)) - + self.processCaptcha(task) else: self.logInfo(_("Your %s account has not enough credits") % self.__name__) -- cgit v1.2.3