Use is_alive instead of isAlive for Python 3.9 compatibility.

This commit is contained in:
Karthikeyan Singaravelan 2020-01-22 18:36:00 +05:30
parent 51c7e763e5
commit 2e00997e33

View File

@ -82,7 +82,7 @@ class Plugin(GlancesPlugin):
if self._thread is None:
thread_is_running = False
else:
thread_is_running = self._thread.isAlive()
thread_is_running = self._thread.is_alive()
if self.timer_ports.finished() and not thread_is_running:
# Run ports scanner
self._thread = ThreadScanner(self.stats)