mirror of https://github.com/f1xpl/openauto.git
Reset android auto entity after error to avoid hanging resources
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…
Reference in New Issue