Update timer example (#1744)
Make sure that `myTimer` is not null when invoking the cancel() methodpull/1747/head
parent
8bed10eace
commit
0fef5a39e3
|
@ -167,7 +167,7 @@ then
|
|||
}
|
||||
} else {
|
||||
logInfo("rules", "Timer canceled")
|
||||
myTimer.cancel()
|
||||
myTimer?.cancel()
|
||||
myTimer = null
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue