Skip to content

Commit

Permalink
Added await to async semaphore release() coroutine (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeler committed Sep 28, 2020
1 parent 5f214d0 commit 1f67394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpcore/_async/http2.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def arequest(
self.events[stream_id] = []
return await h2_stream.arequest(method, url, headers, stream, ext)
except Exception: # noqa: PIE786
self.max_streams_semaphore.release()
await self.max_streams_semaphore.release()
raise

async def send_connection_init(self, timeout: TimeoutDict) -> None:
Expand Down

0 comments on commit 1f67394

Please sign in to comment.