Skip to content

Commit

Permalink
remove signal handling from aiohttp AppRunner
Browse files Browse the repository at this point in the history
nord.cli.main takes care of setting up signal handlers on the
event-loop-level, so aiohttp had best not interfere.

Fixes #30
  • Loading branch information
jbweston committed Jul 19, 2018
1 parent c8133e2 commit 3f9d79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nord/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async def web(args):
raise Abort()

app = nord_web.init_app(client, (username, password))
runner = aiohttp.web.AppRunner(app, handle_signals=True)
runner = aiohttp.web.AppRunner(app)
await runner.setup()
site = aiohttp.web.TCPSite(runner, str(args.host), args.port)
await site.start()
Expand Down

0 comments on commit 3f9d79e

Please sign in to comment.