log out subsession if thread dies
This commit is contained in:
parent
b86e4fec54
commit
8e4deac955
1 changed files with 9 additions and 6 deletions
15
util/kojira
15
util/kojira
|
|
@ -311,12 +311,15 @@ class RepoManager(object):
|
|||
"""Continually checks repos for currency. Runs as a separate thread"""
|
||||
self.logger.info('currencyChecker starting')
|
||||
try:
|
||||
while True:
|
||||
self.checkCurrentRepos(session)
|
||||
time.sleep(self.options.sleeptime)
|
||||
except:
|
||||
logger.exception('Error in currency checker thread')
|
||||
raise
|
||||
try:
|
||||
while True:
|
||||
self.checkCurrentRepos(session)
|
||||
time.sleep(self.options.sleeptime)
|
||||
except:
|
||||
logger.exception('Error in currency checker thread')
|
||||
raise
|
||||
finally:
|
||||
session.logout()
|
||||
|
||||
def pruneLocalRepos(self):
|
||||
"""Scan filesystem for repos and remove any deleted ones
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue