mirror of https://github.com/f1xpl/openauto.git
Cancel device enumeration when app is stopped
parent
28cff9c53b
commit
c4e4192cf8
|
@ -53,6 +53,7 @@ void USBApp::stop()
|
|||
{
|
||||
strand_.dispatch([this, self = this->shared_from_this()]() {
|
||||
isStopped_ = true;
|
||||
connectedAccessoriesEnumerator_->cancel();
|
||||
usbHub_->cancel();
|
||||
|
||||
if(androidAutoEntity_ != nullptr)
|
||||
|
|
Loading…
Reference in New Issue