mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-30 01:40:29 +08:00
Fix inappropriate blocking method call
This commit is contained in:
parent
a85c8cac05
commit
08bdf82125
@ -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]",
|
||||
|
Loading…
Reference in New Issue
Block a user