2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

Disconnect fix

git-svn-id: https://svn.fhem.de/fhem/trunk@460 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2009-11-08 14:32:00 +00:00
parent abce2f312d
commit 881a6bd0eb

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)