Browse Source

fix watchdog exp

master
gsd 2 months ago
parent
commit
2781c2d60e
  1. 8
      tradebot.facti13.external.py

8
tradebot.facti13.external.py

@ -104,11 +104,17 @@ class SteamClient(SteamPy.Client):
else: else:
self.alive_checker_is_runned = True self.alive_checker_is_runned = True
def grabLatency():
try:
return self.latency
except:
return 0.0
url = os.getenv("ALIVE_PUSH") url = os.getenv("ALIVE_PUSH")
while url: while url:
try: try:
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get(os.getenv("ALIVE_PUSH") + f'${self.latency}', ssl = False) as response: async with session.get(os.getenv("ALIVE_PUSH") + f'${grabLatency()}', ssl = False) as response:
tmp = await response.text() tmp = await response.text()
except: except:
traceback.print_exc() traceback.print_exc()

Loading…
Cancel
Save