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:
parent
44b8543e26
commit
642d7f5ae5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user