diff options
| author | Itai Steinherz <itaisteinherz@gmail.com> | 2021-01-29 06:07:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-29 04:07:04 +0000 |
| commit | 7f5eddda77aa03f9b9f458d3d75d28e8dd8697c2 (patch) | |
| tree | e67a400805e5df10832bf28b3d5d7a1f2cc2474f /websocket | |
| parent | 15a92eed55cbdb2f389aa4059cc2b1fc9551edc5 (diff) | |
| download | websocket-client-7f5eddda77aa03f9b9f458d3d75d28e8dd8697c2.tar.gz | |
Use `thread.is_alive()` to replace deprecated `thread.isAlive()` (#594)
Diffstat (limited to 'websocket')
| -rw-r--r-- | websocket/_app.py | 2 |
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 |
