]> git.0d.be Git - botaradio.git/commitdiff
chore: removed workaround for pymumble issue
authorTerry Geng <gengyanda@gmail.com>
Wed, 11 Mar 2020 01:26:10 +0000 (09:26 +0800)
committerTerry Geng <gengyanda@gmail.com>
Wed, 11 Mar 2020 01:28:18 +0000 (09:28 +0800)
mumbleBot.py

index ec63bb419f72929179f68b4f65ce6cfb5cc6fc8a..dd39c8b787065985adcff566b7d84744691ef9bf 100644 (file)
@@ -464,7 +464,6 @@ class MumbleBot:
         delta = time.time() - self.last_volume_cycle_time
 
         if self.on_ducking and self.ducking_release < time.time():
-            self._clear_pymumble_soundqueue()
             self.on_ducking = False
             self._max_rms = 0
 
@@ -564,14 +563,6 @@ class MumbleBot:
         self.last_volume_cycle_time = time.time()
         self.pause_at_id = ""
 
-    # TODO: this is a temporary workaround for issue #44 of pymumble.
-    def _clear_pymumble_soundqueue(self):
-        for id, user in self.mumble.users.items():
-            user.sound.lock.acquire()
-            user.sound.queue.clear()
-            user.sound.lock.release()
-        self.log.debug("bot: pymumble soundqueue cleared.")
-
 
 def start_web_interface(addr, port):
     global formatter