diff --git a/fhem/FHEM/00_ZWDongle.pm b/fhem/FHEM/00_ZWDongle.pm index 93596f087..f57ebbb6d 100755 --- a/fhem/FHEM/00_ZWDongle.pm +++ b/fhem/FHEM/00_ZWDongle.pm @@ -689,6 +689,10 @@ ZWDongle_Ready($) my $po = $hash->{USBDev}; if($po) { my ($BlockingFlags, $InBytes, $OutBytes, $ErrorFlags) = $po->status; + if(!defined($InBytes)) { + DevIo_Disconnected($hash); + return 0; + } return ($InBytes>0); } return 0;