mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm: moved stateStore.Close to end of Stop (travis)
This commit is contained in:
parent
17933e0f5a
commit
9a45e8a69e
1 changed files with 4 additions and 4 deletions
|
|
@ -455,16 +455,16 @@ func (self *Swarm) Stop() error {
|
||||||
if self.accountingMetrics != nil {
|
if self.accountingMetrics != nil {
|
||||||
self.accountingMetrics.Close()
|
self.accountingMetrics.Close()
|
||||||
}
|
}
|
||||||
if self.stateStore != nil {
|
|
||||||
self.stateStore.Close()
|
|
||||||
}
|
|
||||||
|
|
||||||
if self.netStore != nil {
|
if self.netStore != nil {
|
||||||
self.netStore.Close()
|
self.netStore.Close()
|
||||||
}
|
}
|
||||||
self.sfs.Stop()
|
self.sfs.Stop()
|
||||||
stopCounter.Inc(1)
|
stopCounter.Inc(1)
|
||||||
self.streamer.Stop()
|
self.streamer.Stop()
|
||||||
|
if self.stateStore != nil {
|
||||||
|
self.stateStore.Close()
|
||||||
|
}
|
||||||
|
|
||||||
return self.bzz.Stop()
|
return self.bzz.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue