summaryrefslogtreecommitdiff
path: root/websocket
diff options
context:
space:
mode:
authorItai Steinherz <itaisteinherz@gmail.com>2021-01-29 06:07:04 +0200
committerGitHub <noreply@github.com>2021-01-29 04:07:04 +0000
commit7f5eddda77aa03f9b9f458d3d75d28e8dd8697c2 (patch)
treee67a400805e5df10832bf28b3d5d7a1f2cc2474f /websocket
parent15a92eed55cbdb2f389aa4059cc2b1fc9551edc5 (diff)
downloadwebsocket-client-7f5eddda77aa03f9b9f458d3d75d28e8dd8697c2.tar.gz
Use `thread.is_alive()` to replace deprecated `thread.isAlive()` (#594)
Diffstat (limited to 'websocket')
-rw-r--r--websocket/_app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket/_app.py b/websocket/_app.py
index bbf64f5..4a5d261 100644
--- a/websocket/_app.py
+++ b/websocket/_app.py
@@ -228,7 +228,7 @@ class WebSocketApp(object):
If close_frame is set, we will invoke the on_close handler with the
statusCode and reason from there.
"""
- if thread and thread.isAlive():
+ if thread and thread.is_alive():
event.set()
thread.join()
self.keep_running = False