Skip to content

Commit

Permalink
Fixed upgradePromise leak (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Apr 17, 2024
1 parent 505d8a4 commit 7ebee0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Nats/NatsConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ class ConnectionHandler: ChannelInboundHandler {
// due to the promise originating on the event loop of the channel.
try channel.pipeline.syncOperations.addHandler(sslHandler)
} catch {
upgradePromise.fail(error)
return channel.eventLoop.makeFailedFuture(error)
}
}
Expand Down

0 comments on commit 7ebee0d

Please sign in to comment.