00_ZWDongle.pm: Fix endless loop if the socat device is removed (Forum #38315)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8964 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-07-14 12:21:26 +00:00
parent 378ef20a94
commit baba64dc23

View File

@@ -463,7 +463,7 @@ ZWDongle_Clear($)
$hash->{RA_Timeout} = 1.0;
for(;;) {
my ($err, undef) = ZWDongle_ReadAnswer($hash, "Clear", "wontmatch");
last if($err && $err =~ m/^Timeout/);
last if($err && ($err =~ m/^Timeout/ || $err =~ m/No FD/));
}
delete($hash->{RA_Timeout});
$hash->{PARTIAL} = "";