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
Kyle Schwarz 2023-09-21 16:52:30 +00:00
parent 0c436621a0
commit e97b307c4d
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ void Device::wiviThreadBody() {
// Use the command GetAll to get a WiVI::Info structure from the device
const auto generic = com->waitForMessageSync([this]() {
return com->sendCommand(Command::WiVICommand, WiVI::CommandPacket::GetAll::Encode());
}, filter);
}, filter, std::chrono::milliseconds(1000));
if(!generic || generic->type != Message::Type::WiVICommandResponse) {
report(APIEvent::Type::WiVIStackRefreshFailed, APIEvent::Severity::Error);