Skip to content

Commit

Permalink
Plugin now uses uodated event methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Feb 16, 2024
1 parent 286c047 commit 89e784e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyflowlauncher/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def run(self) -> None:
method = request["method"]
parameters = request.get('parameters', [])
if sys.version_info >= (3, 10, 0):
feedback = asyncio.run(self._event_handler(method, *parameters))
feedback = asyncio.run(self._event_handler.trigger_event(method, *parameters))
else:
loop = asyncio.get_event_loop()
feedback = loop.run_until_complete(self._event_handler(method, *parameters))
feedback = loop.run_until_complete(self._event_handler.trigger_event(method, *parameters))
if not feedback:
return
self._client.send(feedback)
Expand Down

0 comments on commit 89e784e

Please sign in to comment.