Use more compatible is_alive in thread
This commit is contained in:
parent
88a1d89501
commit
be9f1e8636
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue