From c41040cb1c4b16d69ef593ad872b41afba54cf62 Mon Sep 17 00:00:00 2001 From: 9iksans Date: Mon, 22 Jul 2024 17:10:00 +0700 Subject: [PATCH] fix - remove close connection on error connection bug --- stash.go | 1 - 1 file changed, 1 deletion(-) diff --git a/stash.go b/stash.go index 7a9aee1..eb8cab5 100644 --- a/stash.go +++ b/stash.go @@ -105,7 +105,6 @@ func SetProtocolConn(protocol string) Option { func (s *Stash) dial(address string) error { conn, err := s.o.dialer.Dial(s.o.protocol, address) if err != nil { - conn.Close() return err }