mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
swarm/storage: Move defer lock unlock before db close
This commit is contained in:
parent
fb4f106ef7
commit
e833eb86eb
1 changed files with 1 additions and 1 deletions
|
|
@ -119,8 +119,8 @@ func (self *DPA) Start() {
|
||||||
|
|
||||||
func (self *DPA) Stop() {
|
func (self *DPA) Stop() {
|
||||||
self.lock.Lock()
|
self.lock.Lock()
|
||||||
self.Close()
|
|
||||||
defer self.lock.Unlock()
|
defer self.lock.Unlock()
|
||||||
|
self.Close()
|
||||||
if !self.running {
|
if !self.running {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue