Reset android auto entity after error to avoid hanging resources
This commit is contained in:
parent
6043aad252
commit
98ceafff30
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user