2
0
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:
borisneubert 2009-02-05 18:51:03 +00:00
parent 0c8f975e5d
commit 416faabc25

View File

@ -616,6 +616,7 @@ FHZ_Read($)
my $dev = $hash->{DeviceName};
Log 1, "USB device $dev disconnected, waiting to reappear";
delete($hash->{FD});
$hash->{PortObj}->close();
DoTrigger($name, "DISCONNECTED");