From d016d33eb0c0d3db77216fb3329cf878efbd847a Mon Sep 17 00:00:00 2001 From: L_DelOff Date: Sun, 8 Dec 2024 11:05:04 +0300 Subject: [PATCH] optimization --- src/model/MumbleBot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/model/MumbleBot.py b/src/model/MumbleBot.py index 02d78cd..b33fbd4 100644 --- a/src/model/MumbleBot.py +++ b/src/model/MumbleBot.py @@ -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)