Skip to content

Commit

Permalink
fix: starlette websocket close called itself recursively
Browse files Browse the repository at this point in the history
it should just call close on the websocket implementation.
  • Loading branch information
maartenbreddels committed Oct 4, 2023
1 parent 4191fd0 commit a14f070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solara/server/starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, ws: starlette.websockets.WebSocket, portal: anyio.from_thread
self.portal = portal

def close(self):
self.portal.call(self.close)
self.portal.call(self.ws.close)

def send_text(self, data: str) -> None:
self.portal.call(self.ws.send_text, data)
Expand Down

0 comments on commit a14f070

Please sign in to comment.