mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +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:
parent
66adcc7117
commit
7f43f9f766
@ -83,7 +83,10 @@ BlockingCall($$@)
|
|||||||
foreach my $d (sort keys %defs) { # Close all kind of FD
|
foreach my $d (sort keys %defs) { # Close all kind of FD
|
||||||
my $h = $defs{$d};
|
my $h = $defs{$d};
|
||||||
TcpServer_Close($h) if($h->{SERVERSOCKET});
|
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";
|
no strict "refs";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user