aboutsummaryrefslogtreecommitdiffstats
path: root/dex/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'dex/backend.go')
-rw-r--r--dex/backend.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/dex/backend.go b/dex/backend.go
index e90c3ad10..f1b0012a2 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -259,14 +259,19 @@ func (s *Dexon) Start(srvr *p2p.Server) error {
}
func (s *Dexon) Stop() error {
+ s.bloomIndexer.Close()
+ s.blockchain.Stop()
+ s.engine.Close()
+ s.protocolManager.Stop()
+ s.txPool.Stop()
+ s.eventMux.Stop()
s.bp.Stop()
s.app.Stop()
if s.indexer != nil {
s.indexer.Stop()
}
- if s.config.BlockProposerEnabled {
- s.bp.Stop()
- }
+ s.chainDb.Close()
+ close(s.shutdownChan)
return nil
}