mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
use name property, clears deprecation warning
This commit is contained in:
parent
91e49cbb55
commit
8485992495
@ -93,7 +93,7 @@ class Producer(threading.Thread):
|
|||||||
if self._remote.event.ldirty:
|
if self._remote.event.ldirty:
|
||||||
self.queue.put("ldirty")
|
self.queue.put("ldirty")
|
||||||
time.sleep(self._remote.ratelimit)
|
time.sleep(self._remote.ratelimit)
|
||||||
self.logger.debug(f"terminating {self.getName()} thread")
|
self.logger.debug(f"terminating {self.name} thread")
|
||||||
self.queue.put(None)
|
self.queue.put(None)
|
||||||
|
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ class Updater(threading.Thread):
|
|||||||
while True:
|
while True:
|
||||||
event = self.queue.get()
|
event = self.queue.get()
|
||||||
if event is None:
|
if event is None:
|
||||||
self.logger.debug(f"terminating {self.getName()} thread")
|
self.logger.debug(f"terminating {self.name} thread")
|
||||||
break
|
break
|
||||||
|
|
||||||
if event == "pdirty" and self._remote.pdirty:
|
if event == "pdirty" and self._remote.pdirty:
|
||||||
|
Loading…
Reference in New Issue
Block a user