mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
00_HMUARTLGW.pm: close device even if it is only in the readylist
git-svn-id: https://svn.fhem.de/fhem/trunk@14239 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7dcd4cbdea
commit
5da9bffee6
@ -296,7 +296,7 @@ sub HMUARTLGW_Undefine($$;$)
|
||||
delete($hash->{keepAlive});
|
||||
}
|
||||
|
||||
if (defined($hash->{FD}) && (!$noclose)) {
|
||||
if (!$noclose) {
|
||||
DevIo_CloseDev($hash);
|
||||
Log3($hash, 3, "${name} device closed") if (!defined($hash->{FD}));
|
||||
}
|
||||
@ -349,7 +349,7 @@ sub HMUARTLGW_Shutdown($)
|
||||
if ($hash->{DevState} > HMUARTLGW_STATE_ENTER_APP);
|
||||
|
||||
DevIo_CloseDev($hash->{keepAlive}) if ($hash->{keepAlive});
|
||||
DevIo_CloseDev($hash) if (defined($hash->{FD}));
|
||||
DevIo_CloseDev($hash);
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user