aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/ethclient.go
diff options
context:
space:
mode:
authorEugene Valeyev <evgen.povt@gmail.com>2018-09-03 23:30:47 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-03 23:30:47 +0800
commit6fc84946203929143c51010e0a10d9fa61fb9b92 (patch)
treecf3885b00f918caccc8e6254804e3f14e31e976f /mobile/ethclient.go
parentcc2b39bbd18a8f67ac9ceca9ee8eabfc72d0b14b (diff)
downloadgo-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.tar
go-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.tar.gz
go-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.tar.bz2
go-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.tar.lz
go-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.tar.xz
go-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.tar.zst
go-tangerine-6fc84946203929143c51010e0a10d9fa61fb9b92.zip
mobile: add whisper client (#15922)
Diffstat (limited to 'mobile/ethclient.go')
-rw-r--r--mobile/ethclient.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/mobile/ethclient.go b/mobile/ethclient.go
index 66399c6b5..662125c4a 100644
--- a/mobile/ethclient.go
+++ b/mobile/ethclient.go
@@ -138,7 +138,9 @@ func (ec *EthereumClient) SubscribeNewHead(ctx *Context, handler NewHeadHandler,
handler.OnNewHead(&Header{header})
case err := <-rawSub.Err():
- handler.OnError(err.Error())
+ if err != nil {
+ handler.OnError(err.Error())
+ }
return
}
}
@@ -227,7 +229,9 @@ func (ec *EthereumClient) SubscribeFilterLogs(ctx *Context, query *FilterQuery,
handler.OnFilterLogs(&Log{&log})
case err := <-rawSub.Err():
- handler.OnError(err.Error())
+ if err != nil {
+ handler.OnError(err.Error())
+ }
return
}
}