Skip to content

Commit

Permalink
Fix memory leak in websocket handler
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh97 committed Jun 4, 2024
1 parent 4398d3b commit fd0a474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ads/aqua/extension/ui_websocket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def on_message_processed(self, future: concurrent.futures.Future):
)
raise e
finally:
self.future_message_map.pop(future)
# Send the response back to the client on the event thread
IOLoop.current().run_sync(lambda: self.write_message(response.to_json()))

Expand Down

0 comments on commit fd0a474

Please sign in to comment.