diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-01-22 18:36:00 +0530 |
---|---|---|
committer | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-01-22 18:36:00 +0530 |
commit | 2e00997e3392fea60d5fc476dc3755c434301237 (patch) | |
tree | e47fcd8e85f5171a0efc6fbd9ebaa650bab0c1ef | |
parent | 51c7e763e5bfda5926a269500a90251df0091f76 (diff) |
Use is_alive instead of isAlive for Python 3.9 compatibility.
-rw-r--r-- | glances/plugins/glances_ports.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/plugins/glances_ports.py b/glances/plugins/glances_ports.py index b2db43a9..069fd59c 100644 --- a/glances/plugins/glances_ports.py +++ b/glances/plugins/glances_ports.py @@ -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) |