MCPcopy Index your code
hub / github.com/pyload/pyload / RefreshThread

Class RefreshThread

pyLoadCli.py:372–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370
371
372class RefreshThread(Thread):
373 def __init__(self, cli):
374 Thread.__init__(self)
375 self.setDaemon(True)
376 self.cli = cli
377
378 def run(self):
379 while True:
380 sleep(1)
381 try:
382 self.cli.refresh()
383 except ConnectionClosed:
384 os.system("clear")
385 print _("pyLoad was terminated")
386 _exit(0)
387 except Exception, e:
388 println(2, red(str(e)))
389 self.cli.reset()
390 print_exc()
391
392
393def print_help(config):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected