mirror of https://github.com/f1xpl/openauto.git
Continue waiting for the device even if entity creation failed
parent
ce6f53c3e8
commit
6043aad252
|
@ -67,13 +67,13 @@ void USBApp::aoapDeviceHandler(aasdk::usb::DeviceHandle deviceHandle)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//std::this_thread::sleep_for(std::chrono::seconds(10));
|
|
||||||
androidAutoEntity_ = androidAutoEntityFactory_.create(std::move(deviceHandle));
|
androidAutoEntity_ = androidAutoEntityFactory_.create(std::move(deviceHandle));
|
||||||
androidAutoEntity_->start(*this);
|
androidAutoEntity_->start(*this);
|
||||||
}
|
}
|
||||||
catch(const aasdk::error::Error& error)
|
catch(const aasdk::error::Error& error)
|
||||||
{
|
{
|
||||||
OPENAUTO_LOG(error) << "[USBApp] AndroidAutoEntity create error: " << error.what();
|
OPENAUTO_LOG(error) << "[USBApp] AndroidAutoEntity create error: " << error.what();
|
||||||
|
this->waitForDevice();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue