Fixed inline calling

This commit is contained in:
Him188 2019-09-30 03:26:56 +08:00
parent d1cc2710ec
commit ffdb7c03fc

View File

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