fix: restore _handleDisconnection() on battery request failure

This was the author's original intent - use battery request failure
as a signal that the connection is lost.
This commit is contained in:
Zach
2026-01-28 21:34:13 -07:00
parent 92d2b224e7
commit 998ff50495
+2 -3
View File
@@ -962,9 +962,8 @@ class MeshCoreConnector extends ChangeNotifier {
try { try {
await sendFrame(buildGetBattAndStorageFrame()); await sendFrame(buildGetBattAndStorageFrame());
} catch (e) { } catch (e) {
// Reset flag on error to allow retry // Connection likely lost - trigger disconnection handling
// Don't disconnect on battery request failure - it may be transient _handleDisconnection();
_batteryRequested = false;
} }
} }