2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

DevIo.pm: more no strict refs for callbacks (Forum #110125)

git-svn-id: https://svn.fhem.de/fhem/trunk@21668 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-04-14 07:52:22 +00:00
parent 629aec061a
commit 4de1d22eca

View File

@ -234,7 +234,9 @@ DevIo_OpenDev($$$;$)
my $doCb = sub ($) {
my ($r) = @_;
Log3 $name, 1, "$name: Can't connect to $dev: $r" if(!$reopen && $r);
no strict "refs";
$callback->($hash,$r) if($callback);
use strict "refs";
return $r;
};