mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 03:16:05 +08:00
Fixed inline calling
This commit is contained in:
parent
d1cc2710ec
commit
ffdb7c03fc
@ -111,8 +111,12 @@ internal class TIMBotNetworkHandler(private val bot: Bot) : BotNetworkHandler {
|
||||
return
|
||||
}
|
||||
|
||||
temporaryPacketHandlers.removeIf {
|
||||
it.onPacketReceived(action.session, packet)
|
||||
with(temporaryPacketHandlers.iterator()) {
|
||||
while (hasNext()) {
|
||||
if (next().onPacketReceived(action.session, packet)) {
|
||||
remove()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//For debug
|
||||
|
Loading…
Reference in New Issue
Block a user