From f02ebd93a6e00332cf7988ce895a7a997d6fd468 Mon Sep 17 00:00:00 2001 From: ice x Date: Sat, 7 Sep 2024 22:49:31 +0300 Subject: [PATCH] Avoid deprecation warning for setDaemon --- nebula3/gclient/net/ConnectionPool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula3/gclient/net/ConnectionPool.py b/nebula3/gclient/net/ConnectionPool.py index 863300cc..c70e1109 100644 --- a/nebula3/gclient/net/ConnectionPool.py +++ b/nebula3/gclient/net/ConnectionPool.py @@ -338,5 +338,5 @@ def _period_detect(self): self.update_servers_status() self._remove_idle_unusable_connection() timer = Timer(self._configs.interval_check, self._period_detect) - timer.setDaemon(True) + timer.daemon = True timer.start()