We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e92dfa commit 873b2ebCopy full SHA for 873b2eb
ocpp/v16/charge_point.py
@@ -205,7 +205,10 @@ async def _handle_call(self, msg):
205
206
try:
207
handler = handlers['_after_action']
208
- await asyncio.coroutine(handler)(**snake_case_payload)
+ # Create task to avoid blocking when making a call inside the
209
+ # after handler
210
+ asyncio.ensure_future(
211
+ asyncio.coroutine(handler)(**snake_case_payload))
212
except KeyError:
213
# '_on_after' hooks are not required. Therefore ignore exception
214
# when no '_on_after' hook is installed.
0 commit comments