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:
parent
91db15a5c6
commit
63f175730f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user