From 4c6fc2d396daaceaf5b7bc234801cb9c81634fb1 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 29 Sep 2022 09:44:50 +0100 Subject: [PATCH] fix bug in call to cache in updater --- voicemeeterlib/updater.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/voicemeeterlib/updater.py b/voicemeeterlib/updater.py index f8bb119..daa6ef8 100644 --- a/voicemeeterlib/updater.py +++ b/voicemeeterlib/updater.py @@ -29,16 +29,18 @@ class Updater(threading.Thread): tuple( not x for x in comp( - self.cache["strip_level"], self._remote._strip_buf + self._remote.cache["strip_level"], self._remote._strip_buf ) ), tuple( not x - for x in comp(self.cache["bus_level"], self._remote._bus_buf) + for x in comp( + self._remote.cache["bus_level"], self._remote._bus_buf + ) ), ) self._remote.cache["strip_level"] = self._remote._strip_buf self._remote.cache["bus_level"] = self._remote._bus_buf self._remote.subject.notify("ldirty") - time.sleep(self._remote.ratelimit if self._remote.event.any() else 0.5) + time.sleep(self._remote.ratelimit if self._remote.event.any() else 0.1)