Fix METADAPT-A not unlocking a mutex properly

This commit is contained in:
Sasha Koshka 2025-01-24 23:22:27 -05:00
parent 0fed1a2451
commit 540c64a421

View File

@ -94,7 +94,7 @@ func (this *a) unlistTransactionSafe(id int64) {
func (this *a) sendMessageSafe(trans int64, method uint16, data []byte) error { func (this *a) sendMessageSafe(trans int64, method uint16, data []byte) error {
this.sendLock.Lock() this.sendLock.Lock()
defer this.sendLock.Lock() defer this.sendLock.Unlock()
return encodeMessageA(this.underlying, trans, method, data) return encodeMessageA(this.underlying, trans, method, data)
} }