From 50ae6f268059e20e08e0a4fbcdba04257675463a Mon Sep 17 00:00:00 2001 From: Him188 Date: Mon, 25 Nov 2019 17:22:46 +0800 Subject: [PATCH] Add comments --- .../network/protocol/tim/TIMBotNetworkHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt index 8041fbd9a..002d8050c 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/TIMBotNetworkHandler.kt @@ -244,7 +244,7 @@ internal class TIMBotNetworkHandler internal constructor(coroutineContext: Corou } when (packet) { - is Cancellable -> if ((packet as Cancellable).broadcast(coroutineContext).cancelled) return + is Cancellable /* Cancellable : Subscribable */ -> if ((packet as Cancellable).broadcast(coroutineContext).cancelled) return is Subscribable -> if ((packet as? BroadcastControllable)?.shouldBroadcast != false) packet.broadcast(coroutineContext) }