From 92d94a3f6164f74d7ff48703b002e9127d7d7821 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 19 Feb 2014 08:08:28 -0500 Subject: FAM: Only shut down inotify notifier once --- src/lib/Bcfg2/Server/FileMonitor/Inotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py index 2cdf27ed8..bce7ce7c2 100644 --- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py +++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py @@ -212,7 +212,7 @@ class Inotify(Pseudo, pyinotify.ProcessEvent): AddMonitor.__doc__ = Pseudo.AddMonitor.__doc__ def shutdown(self): - if self.notifier: + if self.started and self.notifier: self.notifier.stop() shutdown.__doc__ = Pseudo.shutdown.__doc__ -- cgit v1.2.3-1-g7c22