00_ZWDongle.pm: Fix disconnect on Windows (Forum #47732)

git-svn-id: https://svn.fhem.de/fhem/trunk@10584 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-01-21 11:07:44 +00:00
parent 80806ff569
commit eacc9866a0

View File

@@ -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;