mirror of https://github.com/fail2ban/fail2ban
fixed cleanup for Gamin backend (by interim stop in the test-cases)
parent
7b614a7a15
commit
9841fe52c3
|
@ -143,6 +143,8 @@ class FilterGamin(FileFilter):
|
||||||
# Desallocates the resources used by Gamin.
|
# Desallocates the resources used by Gamin.
|
||||||
|
|
||||||
def __cleanup(self):
|
def __cleanup(self):
|
||||||
|
if not self.monitor:
|
||||||
|
return
|
||||||
for filename in self.getLogPaths():
|
for filename in self.getLogPaths():
|
||||||
self.monitor.stop_watch(filename)
|
self.monitor.stop_watch(filename)
|
||||||
self.monitor = None
|
self.monitor = None
|
||||||
|
|
Loading…
Reference in New Issue