aboutsummaryrefslogtreecommitdiffstats
path: root/event
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 22:25:43 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 22:25:43 +0800
commit28e1971272d5bab6aa683d3bbe711226ca1fef98 (patch)
tree53dc1673f27dac058a37c738b8fe32b2ddd9a5c9 /event
parent41c493ace9182bc99226d66dc4479277fbbf749d (diff)
parent0cde7a4d46f68863535fbe470499b9d0dfd6ed7a (diff)
downloadgo-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.tar
go-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.tar.gz
go-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.tar.bz2
go-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.tar.lz
go-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.tar.xz
go-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.tar.zst
go-tangerine-28e1971272d5bab6aa683d3bbe711226ca1fef98.zip
Merge branch 'rpcxeth' into rpcfrontier
Conflicts: rpc/api.go
Diffstat (limited to 'event')
-rw-r--r--event/filter/eth_filter.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/event/filter/eth_filter.go b/event/filter/eth_filter.go
index ab811e90e..1abd48389 100644
--- a/event/filter/eth_filter.go
+++ b/event/filter/eth_filter.go
@@ -48,7 +48,9 @@ func (self *FilterManager) InstallFilter(filter *core.Filter) (id int) {
func (self *FilterManager) UninstallFilter(id int) {
self.filterMu.Lock()
defer self.filterMu.Unlock()
- delete(self.filters, id)
+ if _, ok := self.filters[id]; ok {
+ delete(self.filters, id)
+ }
}
// GetFilter retrieves a filter installed using InstallFilter.