diff options
| author | 2020-01-06 17:04:30 +0000 | |
|---|---|---|
| committer | 2020-01-06 17:04:30 +0000 | |
| commit | 7478d62b77a7c7637000670d1c2ed22b1b403745 (patch) | |
| tree | c8631d26448a5d35ee5a8fe06dfe28cc69c83bfb /src/utils/http.py | |
| parent | show issues/transferred by default for github webhooks (diff) | |
| signature | ||
explicitly .close() task in http.request_many()
Diffstat (limited to 'src/utils/http.py')
| -rw-r--r-- | src/utils/http.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index 11d63797..7225f41e 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -258,6 +258,7 @@ def request_many(requests: typing.List[Request]) -> typing.Dict[str, Response]: task = asyncio.wait(awaits, loop=loop, timeout=5) loop.run_until_complete(task) loop.close() + task.close() return responses |
