Skip to content

Commit

Permalink
modification in ChannelInactive of HTTPRequestHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudrani committed Apr 1, 2020
1 parent 4d8462d commit 6fe04a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KituraNet/HTTP/HTTPRequestHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandle
keepAliveState.decrement()
}

func channelInactive(context: ChannelHandlerContext, httpServer: HTTPServer) {
httpServer.connectionCount.sub(1)
func channelInactive(context: ChannelHandlerContext) {
server.connectionCount.sub(1)
}
}

0 comments on commit 6fe04a0

Please sign in to comment.