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

git-svn-id: https://svn.fhem.de/fhem/trunk@8964 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-07-14 12:21:26 +00:00
parent efff927e6a
commit a8adf78dc2

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} = "";