Change isAlive() to is_alive()
This commit is contained in:
@@ -18,9 +18,9 @@ def non_blocking():
|
|||||||
# t in this case is a thread
|
# t in this case is a thread
|
||||||
t = c.open_video_stream(callback=inner_callback)
|
t = c.open_video_stream(callback=inner_callback)
|
||||||
|
|
||||||
print(t.isAlive())
|
print(t.is_alive())
|
||||||
while True:
|
while True:
|
||||||
if not t.isAlive():
|
if not t.is_alive():
|
||||||
print("continuing")
|
print("continuing")
|
||||||
break
|
break
|
||||||
# stop the stream
|
# stop the stream
|
||||||
|
|||||||
Reference in New Issue
Block a user