cmd/utils: fix interrupt handling to actually see subsequent interrupts

pull/1418/head
Felix Lange 10 years ago
parent 5615fc4714
commit d4c2e9de32
  1. 2
      cmd/utils/cmd.go

@ -132,7 +132,7 @@ func StartEthereum(ethereum *eth.Ethereum) {
defer signal.Stop(sigc)
<-sigc
glog.V(logger.Info).Infoln("Got interrupt, shutting down...")
ethereum.Stop()
go ethereum.Stop()
logger.Flush()
for i := 10; i > 0; i-- {
<-sigc

Loading…
Cancel
Save