Skip to content

Commit

Permalink
Don't reset last event timer in PingreqHandler.channelRead
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jun 23, 2021
1 parent 0392b99 commit 6e86bb5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Sources/MQTTNIO/PingreqHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ final class PingreqHandler: ChannelDuplexHandler {
context.fireChannelActive()
}

func channelRead(context: ChannelHandlerContext, data: NIOAny) {
self.lastEventTime = .now()
context.fireChannelRead(data)
}

func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?) {
self.lastEventTime = .now()
context.write(data, promise: promise)
Expand Down

0 comments on commit 6e86bb5

Please sign in to comment.