Device: Guard mutex usage
parent
83ab65b062
commit
ebf9409c18
|
|
@ -554,6 +554,7 @@ bool Device::goOnline() {
|
|||
return false;
|
||||
}
|
||||
|
||||
if(supportsNetworkMutex()) {
|
||||
assignedClientId = com->getClientIDSync();
|
||||
if(assignedClientId) {
|
||||
// firmware supports clientid/mutex
|
||||
|
|
@ -575,6 +576,7 @@ bool Device::goOnline() {
|
|||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// (re)start the keeponline
|
||||
keeponline = std::make_unique<Periodic>([this] { return enableNetworkCommunication(true, onlineTimeoutMs); }, std::chrono::milliseconds(onlineTimeoutMs / 4));
|
||||
|
|
|
|||
Loading…
Reference in New Issue