optimization
parent
362b633719
commit
d016d33eb0
|
@ -58,7 +58,4 @@ class MumbleBot:
|
||||||
|
|
||||||
def loop(self):
|
def loop(self):
|
||||||
while not self.exit and self.bot.is_alive():
|
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:
|
time.sleep(0.5)
|
||||||
# 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)
|
|
||||||
|
|
Loading…
Reference in New Issue