Continue waiting for the device even if entity creation failed

pull/10/head
michal.szwaj 2018-02-15 20:04:55 +01:00
parent ce6f53c3e8
commit 6043aad252
1 changed files with 1 additions and 1 deletions

View File

@ -67,13 +67,13 @@ void USBApp::aoapDeviceHandler(aasdk::usb::DeviceHandle deviceHandle)
{
try
{
//std::this_thread::sleep_for(std::chrono::seconds(10));
androidAutoEntity_ = androidAutoEntityFactory_.create(std::move(deviceHandle));
androidAutoEntity_->start(*this);
}
catch(const aasdk::error::Error& error)
{
OPENAUTO_LOG(error) << "[USBApp] AndroidAutoEntity create error: " << error.what();
this->waitForDevice();
}
}
else