Commit 08bdf821 authored by Him188's avatar Him188

Fix inappropriate blocking method call

parent a85c8cac
......@@ -130,7 +130,6 @@ object MiraiConsole {
val qqPassword = it[1]
logger("[Bot Login]", 0, "login...")
try {
runBlocking {
frontEnd.prePushBot(qqNumber)
val bot = Bot(qqNumber, qqPassword) {
this.loginSolver = frontEnd.createLoginSolver()
......@@ -160,7 +159,6 @@ object MiraiConsole {
"$qqNumber login successes"
)
frontEnd.pushBot(bot)
}
} catch (e: Exception) {
logger(
"[Bot Login]",
......
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