Use more compatible is_alive in thread
This commit is contained in:
		| @@ -71,7 +71,7 @@ class VMConsoleWatcherInstance(object): | |||||||
|  |  | ||||||
|     # Stop execution thread |     # Stop execution thread | ||||||
|     def stop(self): |     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.logger.out('Stopping VM log parser', state='i', prefix='Domain {}'.format(self.domuuid)) | ||||||
|             self.thread_stopper.set() |             self.thread_stopper.set() | ||||||
|             # Do one final flush |             # Do one final flush | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user