athenad: set timeout when creating websocket

pull/20987/head
Willem Melching 4 years ago
parent c04b47938d
commit 466f5f091e
  1. 3
      selfdrive/athena/athenad.py

@ -443,7 +443,8 @@ def main():
try:
ws = create_connection(ws_uri,
cookie="jwt=" + api.get_token(),
enable_multithread=True)
enable_multithread=True,
timeout=1.0)
cloudlog.event("athenad.main.connected_ws", ws_uri=ws_uri)
ws.settimeout(1)
conn_retries = 0

Loading…
Cancel
Save