2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

Blocking.pm: require DevIo.pm for modules without DevIo.pm but setting DeviceName

git-svn-id: https://svn.fhem.de/fhem/trunk@5232 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-03-16 12:13:55 +00:00
parent 66adcc7117
commit 7f43f9f766

View File

@ -83,7 +83,10 @@ BlockingCall($$@)
foreach my $d (sort keys %defs) { # Close all kind of FD
my $h = $defs{$d};
TcpServer_Close($h) if($h->{SERVERSOCKET});
DevIo_CloseDev($h,1) if($h->{DeviceName});
if($h->{DeviceName}) {
require "$attr{global}{modpath}/FHEM/DevIo.pm";
DevIo_CloseDev($h,1);
}
}
no strict "refs";