aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethereum.go b/ethereum.go
index 707938639..2f4db7336 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -339,7 +339,9 @@ func (s *Ethereum) Stop() {
close(s.quit)
- s.RpcServer.Stop()
+ if s.RpcServer != nil {
+ s.RpcServer.Stop()
+ }
s.txPool.Stop()
s.stateManager.Stop()