Skip to content

Commit

Permalink
Remember to pass active/inactive onto next channel
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 14, 2021
1 parent 7d343da commit 3f0efa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/MQTTNIO/ChannelHandlers/MQTTMessageHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ class MQTTMessageHandler: ChannelDuplexHandler {

func channelActive(context: ChannelHandlerContext) {
self.pingreqHandler?.start(context: context)
context.fireChannelActive()
}

func channelInactive(context: ChannelHandlerContext) {
self.pingreqHandler?.stop()
context.fireChannelInactive()
}

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

0 comments on commit 3f0efa5

Please sign in to comment.