Update NotifyIfLeftUnlocked.groovy
authorSeyed Amir Hossein Aqajari <amiraj.95@uci.edu>
Sat, 16 Nov 2019 00:47:51 +0000 (16:47 -0800)
committerGitHub Enterprise <noreply@github.uci.edu>
Sat, 16 Nov 2019 00:47:51 +0000 (16:47 -0800)
third-party/NotifyIfLeftUnlocked.groovy

index 86096f4d96e07b491e68e5d660c2505e2a699116..e3f67a5a3ebaa327952ac9bcaf8cc819d9d84579 100755 (executable)
@@ -89,7 +89,7 @@ def notifyUnlocked()
             if (state.retries++ < 3) {
                 log.trace "Door is open, can't lock. Rescheduling the check."
                 sendMessage("Can't lock the ${aLock.displayName} because the door is open. Will try again in ${duration} minutes.")
             if (state.retries++ < 3) {
                 log.trace "Door is open, can't lock. Rescheduling the check."
                 sendMessage("Can't lock the ${aLock.displayName} because the door is open. Will try again in ${duration} minutes.")
-                runIn(duration * 60, notifyUnlocked)
+                //runIn(duration * 60, notifyUnlocked)
             }
             else {
                 log.trace "The door is still open after ${state.retries} retries, giving up."
             }
             else {
                 log.trace "The door is still open after ${state.retries} retries, giving up."