Update stream integration for Python 3.9 which removed isAlive from threading in favor of is_alive (#42051)
Python 3.9 compact
This commit is contained in:
1 parent
33f0bf4c4a
commit
6f8e3d2544
1 file changed
+1
-1
@@ -171,7 +171,7 @@ class Stream:
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from .worker import stream_worker
|
||||
|
||||
if self._thread is None or not self._thread.isAlive():
|
||||
if self._thread is None or not self._thread.is_alive():
|
||||
if self._thread is not None:
|
||||
# The thread must have crashed/exited. Join to clean up the
|
||||
# previous thread.
|
||||
|
||||
Reference in new issue
Block a user