Commit ffdb7c03 authored by Him188's avatar Him188

Fixed inline calling

parent d1cc2710
......@@ -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
......
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