fix error
This commit is contained in:
parent
05fdb0605e
commit
b85bb84e3b
|
@ -220,9 +220,10 @@ method unsubscribe*(subscriptions: PollingSubscriptions,
|
|||
{.async.} =
|
||||
subscriptions.filters.del(id)
|
||||
subscriptions.callbacks.del(id)
|
||||
let sub = subscriptions.subscriptionMapping[id]
|
||||
subscriptions.subscriptionMapping.del(id)
|
||||
try:
|
||||
discard await subscriptions.client.eth_uninstallFilter(subscriptions.subscriptionMapping[id])
|
||||
discard await subscriptions.client.eth_uninstallFilter(sub)
|
||||
except CancelledError as e:
|
||||
raise e
|
||||
except CatchableError as e:
|
||||
|
|
Loading…
Reference in New Issue