Check if the lib still online while sending the audio buffer
This commit is contained in:
Azlux 2020-12-01 12:13:01 +01:00
parent 19858595d6
commit 9174ce67ff

View File

@ -560,7 +560,7 @@ class MumbleBot:
else:
self.wait_for_ready = False
while self.mumble.sound_output.get_buffer_size() > 0:
while self.mumble.sound_output.get_buffer_size() > 0 and self.mumble.is_alive():
# Empty the buffer before exit
time.sleep(0.01)
time.sleep(0.5)