From edc48287879d675b3a9240921b8ca5139e795ab2 Mon Sep 17 00:00:00 2001 From: Aris Date: Tue, 18 Feb 2025 13:21:08 +0100 Subject: [PATCH] Fixed setDaemon() deprecation warning --- src/cfclient/utils/periodictimer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfclient/utils/periodictimer.py b/src/cfclient/utils/periodictimer.py index 7ba3063d..84805cd2 100644 --- a/src/cfclient/utils/periodictimer.py +++ b/src/cfclient/utils/periodictimer.py @@ -57,7 +57,7 @@ def start(self): logger.warning("Timer already started, not restarting") return self._thread = _PeriodicTimerThread(self._period, self._callbacks) - self._thread.setDaemon(True) + self._thread.daemon = True self._thread.start() def stop(self):