use name property, clears deprecation warning

This commit is contained in:
onyx-and-iris 2023-06-25 03:40:36 +01:00
parent 91e49cbb55
commit 8485992495

View File

@ -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: