Disconnect fix

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@460 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2009-11-08 14:32:00 +00:00
parent 0815bdc9ed
commit 021c91f08c

View File

@@ -509,8 +509,7 @@ CUL_ReadAnswer($$$)
if($nfound < 0) { if($nfound < 0) {
next if ($! == EAGAIN() || $! == EINTR() || $! == 0); next if ($! == EAGAIN() || $! == EINTR() || $! == 0);
my $err = $!; my $err = $!;
close($hash->{FD}); CUL_Disconnected($hash);
undef($hash->{FD});
return("CUL_ReadAnswer $arg: $err", undef); return("CUL_ReadAnswer $arg: $err", undef);
} }
return ("Timeout reading answer for get $arg", undef) return ("Timeout reading answer for get $arg", undef)