Reset android auto entity after error to avoid hanging resources

This commit is contained in:
michal.szwaj 2018-02-15 20:12:09 +01:00
parent 6043aad252
commit 98ceafff30

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();
}
}