Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
fix: socket connection leak
Browse files Browse the repository at this point in the history
  • Loading branch information
aKardasz authored and siredmar committed Apr 10, 2024
1 parent efcd72f commit 4386f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resolver/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func (r *Resolver) CloseConnection() {
if r != nil {
if r.nc == nil {
if r.nc != nil {
r.nc.Close()
}
}
Expand Down

0 comments on commit 4386f14

Please sign in to comment.