Commit 7cce7c3a authored by Him188's avatar Him188

Fixed bugs

parent 23c060fb
...@@ -380,10 +380,11 @@ internal class BotNetworkHandlerImpl(private val bot: Bot) : BotNetworkHandler { ...@@ -380,10 +380,11 @@ internal class BotNetworkHandlerImpl(private val bot: Bot) : BotNetworkHandler {
is ServerLoginSuccessPacket -> { is ServerLoginSuccessPacket -> {
BotLoginSucceedEvent(bot).broadcast() BotLoginSucceedEvent(bot).broadcast()
//登录成功后会收到大量上次的消息, 忽略掉 //登录成功后会收到大量上次的消息, 忽略掉 todo 优化
MiraiThreadPool.getInstance().schedule({ GlobalScope.launch {
delay(3000)
message.ignoreMessage = false message.ignoreMessage = false
}, 3, TimeUnit.SECONDS) }
onLoggedIn(sessionKey) onLoggedIn(sessionKey)
......
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