Device: Unlock network mutex when going offline

This commit is contained in:
Jonathan Schwartz
2026-01-27 15:22:12 -05:00
committed by Kyle Schwarz
parent 4c7b8e107a
commit f6926cbb22
+5
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;