From ba345a6e26e480201c7abe6314687f744b12bb1b Mon Sep 17 00:00:00 2001 From: ice1x Date: Sun, 8 Sep 2024 01:48:19 +0300 Subject: [PATCH] Avoid deprecation warning for setDaemon (#364) --- 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()