mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fixed crash after device was disconnected
git-svn-id: https://svn.fhem.de/fhem/trunk@347 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0c8f975e5d
commit
416faabc25
@ -616,6 +616,7 @@ FHZ_Read($)
|
|||||||
|
|
||||||
my $dev = $hash->{DeviceName};
|
my $dev = $hash->{DeviceName};
|
||||||
Log 1, "USB device $dev disconnected, waiting to reappear";
|
Log 1, "USB device $dev disconnected, waiting to reappear";
|
||||||
|
delete($hash->{FD});
|
||||||
$hash->{PortObj}->close();
|
$hash->{PortObj}->close();
|
||||||
DoTrigger($name, "DISCONNECTED");
|
DoTrigger($name, "DISCONNECTED");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user