From 7892333c278e630b481f42e83f3b3d517a89d715 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 24 Oct 2019 20:51:37 +0800 Subject: [PATCH] Cleanup --- .../network/protocol/tim/packet/event/MessageEventPackets.kt | 2 ++ .../src/commonMain/kotlin/net.mamoe.mirai/utils/MiraiLogger.kt | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt index 653b2e64a..5176bed70 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt @@ -106,6 +106,8 @@ class ServerFriendMessageEventPacket(input: ByteReadPacket, eventIdentity: Event discardExact(1)//0x00 isPrevious = readByte().toInt() == 0x08 discardExact(l1.toInt() - 2) + //java.io.EOFException: Only 49 bytes were discarded of 69 requested + //抖动窗口消息 discardExact(69) readLVByteArray()//font discardExact(2)//2个0x00 diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/MiraiLogger.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/MiraiLogger.kt index 323a5d686..93bb85ead 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/MiraiLogger.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/MiraiLogger.kt @@ -28,5 +28,4 @@ interface MiraiLogger { expect class PlatformLogger @JvmOverloads constructor(identity: String? = null) : MiraiLogger -fun Throwable.log() = MiraiLogger.log(this) -fun Throwable.printStacktrace() = this.log() \ No newline at end of file +fun Throwable.log() = MiraiLogger.log(this) \ No newline at end of file