kojira: replace deprecated Thread.isAlive()
From py 2.7 exists an alias is_alive, so it is safe to replace it. Fixes: https://pagure.io/koji/issue/2312
This commit is contained in:
parent
70fa7017e0
commit
2baa24bd4e
1 changed files with 3 additions and 3 deletions
|
|
@ -949,13 +949,13 @@ def main(options, session):
|
|||
repomgr.checkQueue()
|
||||
repomgr.printState()
|
||||
repomgr.pruneLocalRepos()
|
||||
if not curr_chk_thread.isAlive():
|
||||
if not curr_chk_thread.is_alive():
|
||||
logger.error("Currency checker thread died. Restarting it.")
|
||||
curr_chk_thread = start_currency_checker(session, repomgr)
|
||||
if options.check_external_repos and not curr_ext_chk_thread.isAlive():
|
||||
if options.check_external_repos and not curr_ext_chk_thread.is_alive():
|
||||
logger.error("External currency checker thread died. Restarting it.")
|
||||
curr_ext_chk_thread = start_external_currency_checker(session, repomgr)
|
||||
if not regen_thread.isAlive():
|
||||
if not regen_thread.is_alive():
|
||||
logger.error("Regeneration thread died. Restarting it.")
|
||||
regen_thread = start_regen_loop(session, repomgr)
|
||||
except KeyboardInterrupt:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue