2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

DevIo.pm: avoid endless loop in TimeoutRead (Forum #33506)

git-svn-id: https://svn.fhem.de/fhem/trunk@7918 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-08 16:47:01 +00:00
parent 44b8543e26
commit 642d7f5ae5

View File

@ -95,7 +95,7 @@ DevIo_TimeoutRead($$)
my $nfound = select($rin, undef, undef, $timeout); my $nfound = select($rin, undef, undef, $timeout);
last if($nfound <= 0); last if($nfound <= 0);
my $r = DevIo_DoSimpleRead($hash); my $r = DevIo_DoSimpleRead($hash);
last if(!defined($r)); last if(!defined($r) || $r == "");
$answer .= $r; $answer .= $r;
} }
return $answer; return $answer;