Skip to content

Commit ba345a6

Browse files
authored
Avoid deprecation warning for setDaemon (#364)
1 parent 9625820 commit ba345a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nebula3/gclient/net/ConnectionPool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,5 @@ def _period_detect(self):
338338
self.update_servers_status()
339339
self._remove_idle_unusable_connection()
340340
timer = Timer(self._configs.interval_check, self._period_detect)
341-
timer.setDaemon(True)
341+
timer.daemon = True
342342
timer.start()

0 commit comments

Comments
 (0)