From 8fe3ba8d4f05e92d31264314b725a93c7e5019a9 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 25 Apr 2025 15:07:47 -0400 Subject: [PATCH] Close METADAPT-A transaction channel --- metadapta.go | 1 + 1 file changed, 1 insertion(+) diff --git a/metadapta.go b/metadapta.go index aa941e3..20074b3 100644 --- a/metadapta.go +++ b/metadapta.go @@ -109,6 +109,7 @@ func (this *a) sendMessageSafe(trans int64, method uint16, data []byte) error { func (this *a) receive() { defer func() { this.underlying.Close() + close(this.transChan) this.transLock.Lock() defer this.transLock.Unlock() for _, trans := range this.transMap {