good morning!!!!

Skip to content
Snippets Groups Projects
Commit e252dbf9 authored by Felix Lange's avatar Felix Lange
Browse files

eth: stop eventMux first

This fixes the hang in Ethereum.Stop.
parent 8170f96d
No related branches found
No related tags found
No related merge requests found
......@@ -490,6 +490,9 @@ func (s *Ethereum) peerHandler(listener net.Listener) {
}
func (s *Ethereum) Stop() {
// Stop eventMux first, it will close all subscriptions.
s.eventMux.Stop()
// Close the database
defer s.db.Close()
......@@ -514,7 +517,6 @@ func (s *Ethereum) Stop() {
}
s.txPool.Stop()
s.stateManager.Stop()
s.eventMux.Stop()
s.blockPool.Stop()
ethlogger.Infoln("Server stopped")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment