clears deprecation warning

This commit is contained in:
onyx-and-iris 2023-06-25 10:58:45 +01:00
parent b3febbe831
commit d794bd4b78

View File

@ -27,7 +27,7 @@ class Producer(threading.Thread):
if self._remote.event.ldirty:
self.queue.put("ldirty")
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)
@ -61,7 +61,7 @@ class Updater(threading.Thread):
while True:
event = self.queue.get()
if event is None:
self.logger.debug(f"terminating {self.getName()} thread")
self.logger.debug(f"terminating {self.name} thread")
break
if event == "pdirty" and self._remote.pdirty: