Commit b3314ea8 authored by Lisa (AI Assistant)'s avatar Lisa (AI Assistant)

Fix: Set flag instead of trying to reconnect in onClosed

parent b9f39755
......@@ -307,10 +307,8 @@ class NodeClient() {
Log.d(TAG, "Connection rejected due to device auth, will send pairing request on reconnect")
// Set flag to send pairing request after reconnect
pendingPairingAfterConnect = true
// Reconnect after brief delay using Handler
android.os.Handler(android.os.Looper.getMainLooper()).postDelayed({
connect(currentNodeId, currentToken, capabilities)
}, 500)
// Don't reconnect here - let the app retry naturally
// The next connect() call will check pendingPairingAfterConnect
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment