2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-14 15:39:12 +00:00

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 9a4517f657
commit c3ec4c2a4d

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