Compare commits

..

No commits in common. "09cb62ecfa5b8e9768d62832d9fe2dcbca5910a3" and "b33926f304cc1fd7edfab230b119261b99a85623" have entirely different histories.

4 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,7 @@
import json
import logging
import time
from logging import config
import voicemeeterlib

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "voicemeeter-api"
version = "2.4.3"
version = "2.4.2"
description = "A Python wrapper for the Voiceemeter API"
authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT"

View File

@ -331,9 +331,8 @@ class Remote(CBindings):
self.logger.info(f"Profile '{name}' applied!")
def end_thread(self):
if self.running:
self.logger.debug("events thread shutdown started")
self.running = False
self.logger.debug("events thread shutdown started")
self.running = False
def logout(self) -> None:
"""Logout of the API"""

View File

@ -56,7 +56,12 @@ class Updater(threading.Thread):
Generate _strip_comp, _bus_comp and update level cache if ldirty.
"""
while event := self.queue.get():
while True:
event = self.queue.get()
if event is None:
self.logger.debug(f"terminating {self.name} thread")
break
if event == "pdirty" and self._remote.pdirty:
self._remote.subject.notify(event)
elif event == "mdirty" and self._remote.mdirty:
@ -68,4 +73,3 @@ class Updater(threading.Thread):
self._remote.cache["strip_level"] = self._remote._strip_buf
self._remote.cache["bus_level"] = self._remote._bus_buf
self._remote.subject.notify(event)
self.logger.debug(f"terminating {self.name} thread")