diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-06 20:15:02 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-06 20:15:02 +0800 |
commit | e18b96b486abefb587fd93cfe33fe6edcd8cbb87 (patch) | |
tree | ea20dfae7c4398f94f51e7ac7c95cbab34baf21e | |
parent | 66af7490237aeb9a497704580cf8b9831d3dc829 (diff) | |
download | dexon-e18b96b486abefb587fd93cfe33fe6edcd8cbb87.tar.gz dexon-e18b96b486abefb587fd93cfe33fe6edcd8cbb87.tar.zst dexon-e18b96b486abefb587fd93cfe33fe6edcd8cbb87.zip |
Fix an issue where we don't have the rpc so we dont have to close it
-rw-r--r-- | ethereum.go | 4 |
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() |