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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7918 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-02-08 16:47:01 +00:00
parent 8f19232711
commit 0e4eaadeac

View File

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