Cancel device enumeration when app is stopped

pull/53/head
michal.szwaj 2018-03-17 02:00:06 +01:00
parent 28cff9c53b
commit c4e4192cf8
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ void USBApp::stop()
{
strand_.dispatch([this, self = this->shared_from_this()]() {
isStopped_ = true;
connectedAccessoriesEnumerator_->cancel();
usbHub_->cancel();
if(androidAutoEntity_ != nullptr)