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
pull/63/head
Benjamin Tissoires 2018-01-31 17:04:54 +01:00 committed by Peter Hutterer
parent 5368e49f5d
commit db2f37c561
1 changed files with 4 additions and 1 deletions

View File

@ -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')