Use more compatible is_alive in thread

This commit is contained in:
Joshua Boniface 2021-06-13 14:36:27 -04:00
parent 88a1d89501
commit be9f1e8636
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class VMConsoleWatcherInstance(object):
# Stop execution thread
def stop(self):
if self.thread and self.thread.isAlive():
if self.thread and self.thread.is_alive():
self.logger.out('Stopping VM log parser', state='i', prefix='Domain {}'.format(self.domuuid))
self.thread_stopper.set()
# Do one final flush