Update timer example (#1744)

Make sure that `myTimer` is not null when invoking the cancel() method
pull/1747/head
Marcel Erkel 2022-01-31 20:12:31 +01:00 committed by GitHub
parent 8bed10eace
commit 0fef5a39e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ then
}
} else {
logInfo("rules", "Timer canceled")
myTimer.cancel()
myTimer?.cancel()
myTimer = null
}
end