Skip to content

Commit 3f0efa5

Browse files
committed
Remember to pass active/inactive onto next channel
1 parent 7d343da commit 3f0efa5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/MQTTNIO/ChannelHandlers/MQTTMessageHandler.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ class MQTTMessageHandler: ChannelDuplexHandler {
4242

4343
func channelActive(context: ChannelHandlerContext) {
4444
self.pingreqHandler?.start(context: context)
45+
context.fireChannelActive()
4546
}
4647

4748
func channelInactive(context: ChannelHandlerContext) {
4849
self.pingreqHandler?.stop()
50+
context.fireChannelInactive()
4951
}
5052

5153
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?) {

0 commit comments

Comments
 (0)