QQA Debugging update

This commit is contained in:
Him188 2020-01-24 13:42:40 +08:00
parent aee51113d2
commit fe1af19970

View File

@ -64,7 +64,7 @@ internal object KnownPacketFactories : List<PacketFactory<*>> by mutableListOf(
* full packet without length
*/
// do not inline. Exceptions thrown will not be reported correctly
suspend fun parseIncomingPacket(bot: QQAndroidBot, rawInput: Input, consumer: PacketConsumer): Unit {
suspend fun parseIncomingPacket(bot: QQAndroidBot, rawInput: Input, consumer: PacketConsumer) {
rawInput.readBytes().let {
PacketLogger.verbose("开始处理包: ${it.toUHexString()}")
it.toReadPacket()
@ -115,8 +115,6 @@ internal object KnownPacketFactories : List<PacketFactory<*>> by mutableListOf(
return
}
}
Unit
}
}