Skip to content

Commit

Permalink
Merge pull request #816 from shirk3y/master
Browse files Browse the repository at this point in the history
Fix start_loop=False using asyncio
  • Loading branch information
oberstet committed Apr 15, 2017
2 parents b1e3fc7 + 14f6431 commit 1396e7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autobahn/asyncio/wamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,13 @@ def accept(response):
txaio.use_asyncio()
txaio.config.loop = loop
coro = loop.create_connection(transport_factory, host, port, ssl=ssl)
(transport, protocol) = loop.run_until_complete(coro)

# start a asyncio loop
if not start_loop:
return protocol
return coro
else:
(transport, protocol) = loop.run_until_complete(coro)

# start logging
txaio.start_logging(level='info')

Expand Down

0 comments on commit 1396e7a

Please sign in to comment.