fix: separate retry counter for device info disconnect #6
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "schwifty/fix-device-info-retry-counter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The device info disconnect handler was sharing
connectionRetryCountwith the initial connection retry logic. If earlier connection attempts used retries, the device info handler had zero retries left and immediately failed with "Disconnected while reading device information (retries exhausted)".This is the error John reported — the
awaitingDeviceInfoForProvisioningguard from PR #4 was catching the disconnect correctly, but the shared counter meant it had no retries to use.Fix
deviceInfoRetryCount(max 2) so device info retries are independent of connection retriesconnectionRetryCountTest plan
Changes already merged to main via direct merge (commit
720c560). Closing — code is live.Pull request closed