Fix command client connect crash

This commit is contained in:
世界
2026-03-24 21:00:25 +08:00
parent 2cb1987080
commit f6c225df65

View File

@@ -100,7 +100,12 @@ open class CommandClient(
} }
options.statusInterval = 1 * 1000 * 1000 * 1000 options.statusInterval = 1 * 1000 * 1000 * 1000
val commandClient = CommandClient(clientHandler, options) val commandClient = CommandClient(clientHandler, options)
try {
commandClient.connect() commandClient.connect()
} catch (e: Exception) {
Log.d("CommandClient", "connect failed", e)
return
}
this.commandClient = commandClient this.commandClient = commandClient
} }