aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-06 20:15:02 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-06 20:15:02 +0800
commite18b96b486abefb587fd93cfe33fe6edcd8cbb87 (patch)
treeea20dfae7c4398f94f51e7ac7c95cbab34baf21e /ethereum.go
parent66af7490237aeb9a497704580cf8b9831d3dc829 (diff)
downloadgo-tangerine-e18b96b486abefb587fd93cfe33fe6edcd8cbb87.tar.gz
go-tangerine-e18b96b486abefb587fd93cfe33fe6edcd8cbb87.tar.zst
go-tangerine-e18b96b486abefb587fd93cfe33fe6edcd8cbb87.zip
Fix an issue where we don't have the rpc so we dont have to close it
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()