mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhem.pl: except_fd fixes
git-svn-id: https://svn.fhem.de/fhem/trunk@4207 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
28fc7c02f0
commit
89e16dea6f
@ -514,10 +514,11 @@ while (1) {
|
||||
next if(!$hash || !$hash->{NAME}); # due to rereadcfg/del
|
||||
|
||||
CallFn($hash->{NAME}, "ReadFn", $hash)
|
||||
if(vec($rout, $hash->{FD}, 1));
|
||||
if(defined($hash->{FD}) && vec($rout, $hash->{FD}, 1));
|
||||
|
||||
|
||||
my $wb = $hash->{$wbName};
|
||||
if(defined($wb) && vec($wout, $hash->{FD}, 1)) {
|
||||
if(defined($wb) && defined($hash->{FD}) && vec($wout, $hash->{FD}, 1)) {
|
||||
my $ret = syswrite($hash->{CD}, $wb);
|
||||
if(!$ret || $ret < 0) {
|
||||
Log 4, "Write error to $p, deleting $hash->{NAME}";
|
||||
|
Loading…
Reference in New Issue
Block a user