From 7b789b9180b5d4c6bc889e6059097507198d5d29 Mon Sep 17 00:00:00 2001 From: xenos1984 <> Date: Sat, 19 Feb 2022 18:05:14 +0000 Subject: [PATCH] 72_UBUS_CALL: fix action on undefine git-svn-id: https://svn.fhem.de/fhem/trunk@25709 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/72_UBUS_CALL.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/72_UBUS_CALL.pm b/fhem/FHEM/72_UBUS_CALL.pm index e1d67446b..dbc24d93b 100644 --- a/fhem/FHEM/72_UBUS_CALL.pm +++ b/fhem/FHEM/72_UBUS_CALL.pm @@ -91,9 +91,10 @@ sub Define sub Undef { - my $hash = shift // return; + my $hash = shift; - Disconnect($hash); + # Clean up possible previous / stale call IDs. + RemoveInternalTimer($hash, \&GetUpdate); return; }