diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 10:58:07 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 10:58:07 +0800 |
commit | 6c04c19eb4506efa5f6de47561025b3702619f79 (patch) | |
tree | 818a43ff93dc06c7a5c04355516b0d67d6ecd1c5 /event | |
parent | 12d87226a74d3c4095ea8e189c30ff31fcadf59f (diff) | |
download | dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.gz dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.bz2 dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.lz dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.xz dexon-6c04c19eb4506efa5f6de47561025b3702619f79.tar.zst dexon-6c04c19eb4506efa5f6de47561025b3702619f79.zip |
Reorg filter logic to XEth
Diffstat (limited to 'event')
-rw-r--r-- | event/filter/eth_filter.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/event/filter/eth_filter.go b/event/filter/eth_filter.go index cb75d7e1a..4406372db 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. |