From 38026e59631fc1e1941a471941134e34ff253a81 Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 17 Aug 2022 16:01:04 +0200 Subject: [PATCH] code review (replace deprecated setter, since python 3.10) --- fail2ban/client/fail2banclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/client/fail2banclient.py b/fail2ban/client/fail2banclient.py index 6ea18fda..c72208cd 100755 --- a/fail2ban/client/fail2banclient.py +++ b/fail2ban/client/fail2banclient.py @@ -196,7 +196,7 @@ class Fail2banClient(Fail2banCmdLine, Thread): th.daemon = True th.start() # Mark current (main) thread as daemon: - self.setDaemon(True) + self.daemon = True # Start server direct here in main thread (not fork): self._server = Fail2banServer.startServerDirect(self._conf, False)