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
702616dd
Commit
702616dd
authored
Mar 11, 2026
by
Lisa (AI Assistant)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Syntax error in NodeService
parent
03c5e85c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
NodeService.kt
...main/java/com/nexlab/openclaw/node/service/NodeService.kt
+1
-15
No files found.
app/src/main/java/com/nexlab/openclaw/node/service/NodeService.kt
View file @
702616dd
...
...
@@ -144,21 +144,7 @@ class NodeService : Service() {
val
fullUrl
=
if
(
protocol
==
"WSS"
)
"wss://$ip:$port"
else
"ws://$ip:$port"
// Delay startup briefly to let startForeground settle
android
.
os
.
Handler
(
android
.
os
.
Looper
.
getMainLooper
()).
postDelayed
({
System
.
out
.
println
(
"=== NodeService STARTED with URL: $fullUrl ==="
)
Log
.
d
(
TAG
,
"Starting with URL: $fullUrl, token present: ${token.isNotBlank()}"
)
// Debug: Write to file
try
{
val
debugFile
=
java
.
io
.
File
(
cacheDir
,
"nodeservice_debug.txt"
)
debugFile
.
appendText
(
"START action: url=$fullUrl tokenLen=${token.length} nodeId=$nodeId\n"
)
}
catch
(
e
:
Exception
)
{}
// Show toast for debugging
try
{
Log
.
e
(
TAG
,
"Starting: $fullUrl"
)
}
catch
(
e
:
Exception
)
{}
// Use coroutine delay to avoid Handler issues
scope
.
launch
{
delay
(
3000
)
// Wait 3 seconds before starting
startNode
(
fullUrl
,
token
,
nodeId
)
...
...
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