diff --git a/FHEM/72_UBUS_CALL.pm b/FHEM/72_UBUS_CALL.pm index e1d67446b..dbc24d93b 100644 --- a/FHEM/72_UBUS_CALL.pm +++ b/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; }