fix: make it 2 hours
This commit is contained in:
parent
39c2f881c8
commit
f244f60c56
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class RelayManager:
|
||||||
def _restart_relay(self, relay: Relay):
|
def _restart_relay(self, relay: Relay):
|
||||||
if relay.error_threshold_reached:
|
if relay.error_threshold_reached:
|
||||||
time_since_last_error = time.time() - relay.last_error_date
|
time_since_last_error = time.time() - relay.last_error_date
|
||||||
if time_since_last_error < 60 * 60 * 24: # last day
|
if time_since_last_error < 60 * 60 * 2: # last day
|
||||||
return
|
return
|
||||||
relay.error_counter = 0
|
relay.error_counter = 0
|
||||||
relay.error_list = []
|
relay.error_list = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue