Showing 1 changed files with 1 additions and 1 deletions
+1 -1
Nasal/core.nas
... ...
@@ -83,7 +83,7 @@ var setListeners = func {
83 83
                 0, 1);
84 84
 
85 85
     prop = zkv.getPath() ~ '/serviceable';
86
-    data.listeners[prop] = setlistener(prop, zkv1000.powerOff, 0, 0);
86
+    data.listeners[prop] = setlistener(prop, func (n) if (!n.getValue()) zkv1000.powerOff, 0, 0);
87 87
 
88 88
     # the timer isn't necessary anymore
89 89
     data.timers.listeners.stop();