optimization

main
L_DelOff 2024-12-08 11:05:04 +03:00
parent 362b633719
commit d016d33eb0
1 changed files with 1 additions and 4 deletions

View File

@ -58,7 +58,4 @@ class MumbleBot:
def loop(self):
while not self.exit and self.bot.is_alive():
while self.thread and self.bot.sound_output.get_buffer_size() > 0.5 and not self.exit:
# If the buffer isn't empty, I cannot send new music part, so I wait
self._loop_status = f'Wait for buffer {self.bot.sound_output.get_buffer_size():.3f}'
time.sleep(0.01)
time.sleep(0.5)