From 642d7f5ae5b76a1ec6febd8529d68c70833f3fc6 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 8 Feb 2015 16:47:01 +0000 Subject: [PATCH] DevIo.pm: avoid endless loop in TimeoutRead (Forum #33506) git-svn-id: https://svn.fhem.de/fhem/trunk@7918 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/DevIo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/DevIo.pm b/fhem/FHEM/DevIo.pm index 3b17ea4b9..886857707 100644 --- a/fhem/FHEM/DevIo.pm +++ b/fhem/FHEM/DevIo.pm @@ -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;