mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-23 09:21:08 -04:00
Pop the txn from the map in case it has already been deleted somehow
This commit is contained in:
parent
feb15dc99f
commit
808ddf0ae7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class HttpTransactionCache(object):
|
||||||
# from the transaction map. This is done to ensure that we don't
|
# from the transaction map. This is done to ensure that we don't
|
||||||
# cache transient errors like rate-limiting errors, etc.
|
# cache transient errors like rate-limiting errors, etc.
|
||||||
def remove_from_map(err):
|
def remove_from_map(err):
|
||||||
del self.transactions[txn_key]
|
self.transactions.pop(txn_key, None)
|
||||||
return err
|
return err
|
||||||
observable.addErrback(remove_from_map)
|
observable.addErrback(remove_from_map)
|
||||||
return observable.observe()
|
return observable.observe()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue