From 0fef5a39e362a7e4d89c07624bbbff226bd6a2e4 Mon Sep 17 00:00:00 2001 From: Marcel Erkel <11489110+marcelerkel@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:12:31 +0100 Subject: [PATCH] Update timer example (#1744) Make sure that `myTimer` is not null when invoking the cancel() method --- addons/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/actions.md b/addons/actions.md index 61eebb80a..736495b8b 100644 --- a/addons/actions.md +++ b/addons/actions.md @@ -167,7 +167,7 @@ then } } else { logInfo("rules", "Timer canceled") - myTimer.cancel() + myTimer?.cancel() myTimer = null } end