Check if the lib still online while sending the audio buffer
This commit is contained in:
Azlux committed 2020-12-01 12:13:01 +01:00
1 parent 19858595d6
commit 9174ce67ff
1 file changed
+1 -1
+1 -1
View File
@@ -560,7 +560,7 @@ class MumbleBot:
else: else:
self.wait_for_ready = False 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 # Empty the buffer before exit
time.sleep(0.01) time.sleep(0.01)
time.sleep(0.5) time.sleep(0.5)