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