From db2f37c56152151c1c38e7101d3d32c26ec61894 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Wed, 31 Jan 2018 17:04:54 +0100 Subject: [PATCH] kete: do_fetch: do not remember the worker There is no stop() method attached to Fetcher, so we don't really need to remember we called it once to call a NOOP --- tools/tuhi-kete.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/tuhi-kete.py b/tools/tuhi-kete.py index 3baa03f..535d50b 100755 --- a/tools/tuhi-kete.py +++ b/tools/tuhi-kete.py @@ -783,7 +783,10 @@ class TuhiKeteShell(cmd.Cmd): except SystemExit: return - self.start_worker(Fetcher, parsed_args) + # we do not call start_worker() as we don't need to retain the + # worker + worker = Fetcher(self._manager, parsed_args) + worker.run() def help_search(self): self.do_search('-h')