Skip to content

Commit

Permalink
Merge pull request #18 from olned/hit-fix-12-2
Browse files Browse the repository at this point in the history
v0.12.2
  • Loading branch information
olned authored Jun 18, 2020
2 parents 8b9a5e7 + cf197cf commit 1225948
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name='ssc2ce',
version="0.12.1",
version="0.12.2",
author='Oleg Nedbaylo',
author_email='olned64@gmail.com',
description='A Set of Simple Connectors for access To Cryptocurrency Exchanges',
Expand Down
6 changes: 5 additions & 1 deletion ssc2ce/deribit/deribit.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,11 @@ def handle_method_message(self, data) -> None:
handler = resolve_route(method, self.method_routes)

if handler:
handler(data)
if asyncio.iscoroutinefunction(handler):
asyncio.ensure_future(handler(data))
else:
handler(data)

elif not self.on_before_handling:
self.logger.warning(f"Unhandled message:{repr(data)}.")

Expand Down

0 comments on commit 1225948

Please sign in to comment.