Browse Source

[213] Don't fail if stopped component isn't running

This will be possible in future, when there's a timeout before
restarting.
Michal 'vorner' Vaner 13 years ago
parent
commit
196b9474f5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/python/isc/bind10/component.py

+ 2 - 1
src/lib/python/isc/bind10/component.py

@@ -363,7 +363,8 @@ class Configurator:
                 component.start()
                 self._components[task['name']] = component
             elif command == 'stop':
-                component.stop()
+                if component.running():
+                    component.stop()
                 del self._components[task['name']]
             else:
                 # Can Not Happen (as the plans are generated by ourself).