72_UBUS_CALL: fix action on undefine

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25709 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
xenos1984 2022-02-19 18:05:14 +00:00
parent 28d27ebac5
commit 78c426562f

View File

@ -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;
}