Commit 03c5e85c authored by Lisa (AI Assistant)'s avatar Lisa (AI Assistant)

Fix: Use coroutine delay instead of Handler

parent 8f0ec17b
......@@ -159,8 +159,10 @@ class NodeService : Service() {
Log.e(TAG, "Starting: $fullUrl")
} catch (e: Exception) {}
scope.launch { startNode(fullUrl, token, nodeId) }
}, 2000) // 2s delay to let startForeground settle
scope.launch {
delay(3000) // Wait 3 seconds before starting
startNode(fullUrl, token, nodeId)
}
}
"STOP" -> {
scope.launch { stopNode() }
......
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