mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +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() {
|
||||
self.lock.Lock()
|
||||
self.Close()
|
||||
defer self.lock.Unlock()
|
||||
self.Close()
|
||||
if !self.running {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue