swarm: moved stateStore.Close to end of Stop (travis)

This commit is contained in:
Fabio Barone 2018-11-20 13:08:30 -05:00
parent 17933e0f5a
commit 9a45e8a69e

View file

@ -455,16 +455,16 @@ func (self *Swarm) Stop() error {
if self.accountingMetrics != nil {
self.accountingMetrics.Close()
}
if self.stateStore != nil {
self.stateStore.Close()
}
if self.netStore != nil {
self.netStore.Close()
}
self.sfs.Stop()
stopCounter.Inc(1)
self.streamer.Stop()
if self.stateStore != nil {
self.stateStore.Close()
}
return self.bzz.Stop()
}