2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

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 91db15a5c6
commit 63f175730f

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;