From f6926cbb2274e9d8766874b40100cca0df4f68b7 Mon Sep 17 00:00:00 2001 From: Jonathan Schwartz Date: Tue, 27 Jan 2026 20:22:12 +0000 Subject: [PATCH] Device: Unlock network mutex when going offline --- device/device.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device/device.cpp b/device/device.cpp index 92386fc..6b2e9f7 100644 --- a/device/device.cpp +++ b/device/device.cpp @@ -613,6 +613,11 @@ bool Device::goOffline() { return true; } + if(assignedClientId.has_value()) { + unlockAllNetworks(); + assignedClientId.reset(); + } + if(!enableNetworkCommunication(false)) return false;