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 { ...@@ -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
......
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