chain: fix issue where mutex can be unlocked twice
This commit is contained in:
parent
58f303b957
commit
081f7b0dce
1 changed files with 0 additions and 1 deletions
|
@ -232,7 +232,6 @@ func (s *NeutrinoClient) NotifyReceived(addrs []btcutil.Address) error {
|
||||||
// If we have a rescan running, we just need to add the appropriate
|
// If we have a rescan running, we just need to add the appropriate
|
||||||
// addresses to the watch list.
|
// addresses to the watch list.
|
||||||
if s.scanning {
|
if s.scanning {
|
||||||
s.clientMtx.Unlock()
|
|
||||||
return s.rescan.Update(neutrino.AddAddrs(addrs...))
|
return s.rescan.Update(neutrino.AddAddrs(addrs...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue