mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Device: Guard mutex usage
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user