Device: Unlock network mutex when going offline

master
Jonathan Schwartz 2026-01-27 20:22:12 +00:00 committed by Kyle Schwarz
parent 4c7b8e107a
commit f6926cbb22
1 changed files with 5 additions and 0 deletions

View File

@ -613,6 +613,11 @@ bool Device::goOffline() {
return true; return true;
} }
if(assignedClientId.has_value()) {
unlockAllNetworks();
assignedClientId.reset();
}
if(!enableNetworkCommunication(false)) if(!enableNetworkCommunication(false))
return false; return false;