mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 11:36:03 +03:00
Only update destination_retry_timings if we have succeeded when retrying
This commit is contained in:
parent
f91263b1e0
commit
c8436b38a0
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ class RetryDestinationLimiter(object):
|
||||||
|
|
||||||
if exc_type is None and exc_val is None and exc_tb is None:
|
if exc_type is None and exc_val is None and exc_tb is None:
|
||||||
# We connected successfully.
|
# We connected successfully.
|
||||||
|
if not self.retry_interval:
|
||||||
|
return
|
||||||
|
|
||||||
retry_last_ts = 0
|
retry_last_ts = 0
|
||||||
self.retry_interval = 0
|
self.retry_interval = 0
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue