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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
temporaryPacketHandlers.removeIf {
|
with(temporaryPacketHandlers.iterator()) {
|
||||||
it.onPacketReceived(action.session, packet)
|
while (hasNext()) {
|
||||||
|
if (next().onPacketReceived(action.session, packet)) {
|
||||||
|
remove()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//For debug
|
//For debug
|
||||||
|
Loading…
Reference in New Issue
Block a user