We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c60c4 commit 7d343daCopy full SHA for 7d343da
Sources/MQTTNIO/ChannelHandlers/MQTTMessageHandler.swift
@@ -35,10 +35,16 @@ class MQTTMessageHandler: ChannelDuplexHandler {
35
}
36
37
func handlerAdded(context: ChannelHandlerContext) {
38
+ if context.channel.isActive {
39
+ self.pingreqHandler?.start(context: context)
40
+ }
41
42
+
43
+ func channelActive(context: ChannelHandlerContext) {
44
self.pingreqHandler?.start(context: context)
45
46
- func handlerRemoved(context: ChannelHandlerContext) {
47
+ func channelInactive(context: ChannelHandlerContext) {
48
self.pingreqHandler?.stop()
49
50
0 commit comments