chain: fix issue where mutex can be unlocked twice

This commit is contained in:
Alex 2017-06-20 17:49:11 -06:00 committed by Olaoluwa Osuntokun
parent 58f303b957
commit 081f7b0dce

View file

@ -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...))
} }