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 86096f4..e3f67a5 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.")
-                runIn(duration * 60, notifyUnlocked)
+                //runIn(duration * 60, notifyUnlocked)
             }
             else {
                 log.trace "The door is still open after ${state.retries} retries, giving up."