Skip to content

Commit

Permalink
update callable code
Browse files Browse the repository at this point in the history
  • Loading branch information
dgodinez-dh committed Nov 22, 2024
1 parent 67fbd93 commit 4662f7e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,8 @@ def _send_event(self, name: str, params: dict) -> None:
encoded_params, callable_id_dict = self._encoder.encode_event_params(params)
# Register any new callables
for callable, callable_id in callable_id_dict.items():
if callable_id not in self._callable_dict:
logger.debug("Registering callable %s", callable_id)
self._callable_dict[callable_id] = wrap_callable(callable)
logger.debug("Registering callable %s", callable_id)
self._temp_callable_dict[callable_id] = wrap_callable(callable)
request = self._make_notification("event", name, encoded_params)
payload = json.dumps(request)
self._connection.on_data(payload.encode(), [])

0 comments on commit 4662f7e

Please sign in to comment.