Fixed shutting down

This commit is contained in:
obscuren
2014-02-28 16:45:29 +01:00
parent 839bd73fbb
commit 601340bd46
2 changed files with 3 additions and 4 deletions

View File

@ -295,7 +295,7 @@ func (s *Ethereum) Stop() {
s.TxPool.Stop()
s.BlockManager.Stop()
s.shutdownChan <- true
close(s.shutdownChan)
}
// This function will wait for a shutdown and resumes main thread execution