Fix METADAPT-A not unlocking a mutex properly
This commit is contained in:
parent
0fed1a2451
commit
540c64a421
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user