mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-30 04:32:00 +03:00
Use is_alive instead of isAlive for Python 3.9 compatibility.
This commit is contained in:
parent
51c7e763e5
commit
2e00997e33
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user