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 962ba1e6d9
commit 897caf2eaa

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";