da03 commited on
Commit
7bc09fd
·
1 Parent(s): c1c036e
Files changed (1) hide show
  1. main.py +0 -2
main.py CHANGED
@@ -543,12 +543,10 @@ async def websocket_endpoint(websocket: WebSocket):
543
  except RuntimeError as e:
544
  if "Cannot call 'send' once a close message has been sent" in str(e):
545
  print(f"[{time.perf_counter():.3f}] WebSocket closed, skipping image send")
546
- break
547
  else:
548
  raise e
549
  except Exception as e:
550
  print(f"[{time.perf_counter():.3f}] Error sending image: {e}")
551
- break
552
 
553
  # Log the input
554
  log_interaction(client_id, data, generated_frame=sample_img)
 
543
  except RuntimeError as e:
544
  if "Cannot call 'send' once a close message has been sent" in str(e):
545
  print(f"[{time.perf_counter():.3f}] WebSocket closed, skipping image send")
 
546
  else:
547
  raise e
548
  except Exception as e:
549
  print(f"[{time.perf_counter():.3f}] Error sending image: {e}")
 
550
 
551
  # Log the input
552
  log_interaction(client_id, data, generated_frame=sample_img)