Unlock mutex before function return.
This commit is contained in:
parent
85219a70d3
commit
3cd9a96dc7
1 changed files with 1 additions and 1 deletions
2
cmd.go
2
cmd.go
|
@ -665,10 +665,10 @@ func (w *BtcWallet) newBlockTxOutHandler(result interface{}, e *btcjson.Error) b
|
|||
if bytes.Equal(u.Out.Hash[:], txhash[:]) && u.Out.Index == uint32(index) {
|
||||
// Found a either a duplicate, or a change UTXO. If not change,
|
||||
// ignore it.
|
||||
w.UtxoStore.RUnlock()
|
||||
if u.Height != -1 {
|
||||
return false
|
||||
}
|
||||
w.UtxoStore.RUnlock()
|
||||
|
||||
w.UtxoStore.Lock()
|
||||
copy(u.BlockHash[:], blockhash[:])
|
||||
|
|
Loading…
Add table
Reference in a new issue