Skip to content

Commit

Permalink
Import app factory before retrieving ioloop fix aio-libs#156
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Ardelean committed Nov 23, 2017
1 parent cf1cfc9 commit 799489d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiohttp_devtools/runserver/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def serve_main_app(config: Config, tty_path: Optional[str], loop: asyncio.Abstra
with set_tty(tty_path):
setup_logging(config.verbose)

# imports the factory. This gives users a chance to register alternative event loops
config.app_factory

loop = loop or asyncio.get_event_loop()

app = config.load_app(loop)
Expand Down

0 comments on commit 799489d

Please sign in to comment.