mirror of
https://github.com/Fishwaldo/open-zwave.git
synced 2025-03-29 10:21:35 +00:00
Need to unlock serial device at close, otherwise there may be problems
reopening it later.
This commit is contained in:
parent
d826c78ae3
commit
930edeedd1
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ SerialControllerImpl::~SerialControllerImpl
|
|||
(
|
||||
)
|
||||
{
|
||||
flock(m_hSerialController, LOCK_UN);
|
||||
if(m_hSerialController >= 0)
|
||||
close( m_hSerialController );
|
||||
#ifdef OZW_DEBUG
|
||||
|
|
Loading…
Add table
Reference in a new issue