optimization
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user