Reset android auto entity after error to avoid hanging resources

pull/10/head
michal.szwaj 2018-02-15 20:12:09 +01:00
parent 6043aad252
commit 98ceafff30
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ void USBApp::aoapDeviceHandler(aasdk::usb::DeviceHandle deviceHandle)
catch(const aasdk::error::Error& error)
{
OPENAUTO_LOG(error) << "[USBApp] AndroidAutoEntity create error: " << error.what();
androidAutoEntity_.reset();
this->waitForDevice();
}
}