mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-334 Better exit code for the RawHID plugin (termintes usb monitor)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2962 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
7317891d39
commit
f2fc9b03d4
@ -54,8 +54,11 @@ RawHIDConnection::RawHIDConnection()
|
||||
RawHIDConnection::~RawHIDConnection()
|
||||
{
|
||||
if (RawHidHandle)
|
||||
{
|
||||
}
|
||||
if (RawHidHandle->isOpen())
|
||||
RawHidHandle->close();
|
||||
|
||||
m_usbMonitor.quit();
|
||||
m_usbMonitor.wait(500);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user