good morning!!!!

Skip to content
Snippets Groups Projects
Commit 704914be authored by Taylor Gerring's avatar Taylor Gerring
Browse files

Check for existance of key before delete

parent 7ee5cb0a
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,10 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro ...@@ -167,7 +167,10 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro
} }
func (self *EthereumApi) UninstallFilter(id int, reply *interface{}) error { func (self *EthereumApi) UninstallFilter(id int, reply *interface{}) error {
if _, ok := self.logs[id]; ok {
delete(self.logs, id) delete(self.logs, id)
}
self.filterManager.UninstallFilter(id) self.filterManager.UninstallFilter(id)
*reply = true *reply = true
return nil return nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment