mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 18:47:14 +08:00
Add comments
This commit is contained in:
parent
33b97c21ec
commit
50ae6f2680
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user