Added 10 second timeout for anidb thread for restarts/shutdowns

This commit is contained in:
echel0n 2014-07-17 23:21:11 -07:00
parent 6957bd0656
commit 4470735437

View file

@ -1258,10 +1258,10 @@ def halt():
pass pass
if ADBA_CONNECTION: if ADBA_CONNECTION:
ADBA_CONNECTION.logout(True) ADBA_CONNECTION.logout()
logger.log(u"Waiting for the ANIDB CONNECTION thread to exit") logger.log(u"Waiting for the ANIDB CONNECTION thread to exit")
try: try:
ADBA_CONNECTION.join() ADBA_CONNECTION.join(10)
except: except:
pass pass