From 9841fe52c34c966d143e17e447268fce4e896214 Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 15 May 2017 12:52:16 +0200 Subject: [PATCH] fixed cleanup for Gamin backend (by interim stop in the test-cases) --- fail2ban/server/filtergamin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fail2ban/server/filtergamin.py b/fail2ban/server/filtergamin.py index 106e4c0f..3baf8c54 100644 --- a/fail2ban/server/filtergamin.py +++ b/fail2ban/server/filtergamin.py @@ -143,6 +143,8 @@ class FilterGamin(FileFilter): # Desallocates the resources used by Gamin. def __cleanup(self): + if not self.monitor: + return for filename in self.getLogPaths(): self.monitor.stop_watch(filename) self.monitor = None