Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
openclaw-android-node
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lisa
openclaw-android-node
Commits
86b8937c
Commit
86b8937c
authored
Mar 11, 2026
by
Lisa (AI Assistant)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add: shouldSendPairingRequest method and retry check
parent
d3bcca3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
NodeClient.kt
...n/java/com/nexlab/openclaw/node/data/remote/NodeClient.kt
+3
-0
NodeService.kt
...main/java/com/nexlab/openclaw/node/service/NodeService.kt
+4
-0
No files found.
app/src/main/java/com/nexlab/openclaw/node/data/remote/NodeClient.kt
View file @
86b8937c
...
...
@@ -65,6 +65,9 @@ class NodeClient() {
private
var
hasReceivedChallenge
=
false
private
var
pendingPairingAfterConnect
=
false
// Flag to send pairing request after reconnect
// Public method to check if pairing request should be sent
fun
shouldSendPairingRequest
():
Boolean
=
pendingPairingAfterConnect
// SharedPreferences for device identity persistence
private
var
prefs
:
SharedPreferences
?
=
null
...
...
app/src/main/java/com/nexlab/openclaw/node/service/NodeService.kt
View file @
86b8937c
...
...
@@ -214,6 +214,10 @@ class NodeService : Service() {
Log
.
e
(
TAG
,
"Toast removed"
)
}
else
{
Log
.
e
(
TAG
,
"Toast removed"
)
// Check if we need to send pairing request
if
(
nodeClient
.
shouldSendPairingRequest
())
{
Log
.
e
(
TAG
,
"Connection rejected, will send pairing request on next connect"
)
}
// Connection failed - retry after delay
Log
.
e
(
TAG
,
"Connection failed, scheduling retry in 3 seconds..."
)
scope
.
launch
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment