summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-19 08:08:28 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2014-02-19 08:24:07 -0500
commit92d94a3f6164f74d7ff48703b002e9127d7d7821 (patch)
tree257ec806239a4c9d0e84fed1e5943cae97a1d23b
parent8be04df96e1b719d9798ed3fe21a5652bc42650a (diff)
downloadbcfg2-92d94a3f6164f74d7ff48703b002e9127d7d7821.tar.gz
bcfg2-92d94a3f6164f74d7ff48703b002e9127d7d7821.tar.bz2
bcfg2-92d94a3f6164f74d7ff48703b002e9127d7d7821.zip
FAM: Only shut down inotify notifier once
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Inotify.py2
1 files changed, 1 insertions, 1 deletions
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__