Fix command client connect crash
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user