natsim

NATS ↔ Instant Messaging Bridge
git clone https://git.instinctive.eu/natsim.git
Log | Files | Refs | README | LICENSE

commit a0d9cf01bbe8a99ca103c0c71018e5993b505715
parent dbea31b4248ef52aeefedea133599ac9defba3af
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Mon, 11 Aug 2025 20:43:36 +0000

IRC object is not closed on connection failure
Diffstat:
Mmain.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/main.go b/main.go @@ -188,6 +188,7 @@ func NewNatsIM(configPath string) (*NatsIM, error) { err = natsim.irc.Connect(natsim.Irc.Server) if err != nil { + natsim.irc = nil natsim.Close() return nil, err }