Device: Wait up to 1s for GetAll response
If there's an active disk read in progress the default 50ms timeout is too short.136-add-android-support
parent
0c436621a0
commit
e97b307c4d
|
|
@ -970,7 +970,7 @@ void Device::wiviThreadBody() {
|
||||||
// Use the command GetAll to get a WiVI::Info structure from the device
|
// Use the command GetAll to get a WiVI::Info structure from the device
|
||||||
const auto generic = com->waitForMessageSync([this]() {
|
const auto generic = com->waitForMessageSync([this]() {
|
||||||
return com->sendCommand(Command::WiVICommand, WiVI::CommandPacket::GetAll::Encode());
|
return com->sendCommand(Command::WiVICommand, WiVI::CommandPacket::GetAll::Encode());
|
||||||
}, filter);
|
}, filter, std::chrono::milliseconds(1000));
|
||||||
|
|
||||||
if(!generic || generic->type != Message::Type::WiVICommandResponse) {
|
if(!generic || generic->type != Message::Type::WiVICommandResponse) {
|
||||||
report(APIEvent::Type::WiVIStackRefreshFailed, APIEvent::Severity::Error);
|
report(APIEvent::Type::WiVIStackRefreshFailed, APIEvent::Severity::Error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue