Skip to content

Commit

Permalink
Fix session close
Browse files Browse the repository at this point in the history
  • Loading branch information
jwygoda committed May 11, 2019
1 parent d18dd47 commit 9717dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawling.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, roots,
self.t1 = None

def close(self):
self.session.close()
asyncio.ensure_future(self.session.close())

def host_okay(self, host: str) -> bool:
"""Check if a host should be crawled."""
Expand Down

0 comments on commit 9717dd0

Please sign in to comment.