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
}
temporaryPacketHandlers.removeIf {
it.onPacketReceived(action.session, packet)
with(temporaryPacketHandlers.iterator()) {
while (hasNext()) {
if (next().onPacketReceived(action.session, packet)) {
remove()
}
}
}
//For debug