Commit 029cfdc1 authored by Lisa (AI Assistant)'s avatar Lisa (AI Assistant)

Fix: Remove delay, start immediately

parent 8d820af6
......@@ -143,10 +143,8 @@ class NodeService : Service() {
val fullUrl = if (protocol == "WSS") "wss://$ip:$port" else "ws://$ip:$port"
// Use Handler to delay startup - this runs on main thread after onStartCommand returns
android.os.Handler(android.os.Looper.getMainLooper()).postDelayed({
// Start connection immediately
scope.launch { startNode(fullUrl, token, nodeId) }
}, 5000) // 5 second delay to let startForeground fully settle
}
"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