Skip to content

Commit

Permalink
in PayloadWriter, the waiter result is set and the self._drain_waiter…
Browse files Browse the repository at this point in the history
… is set back to None at the same time. So self._drain_waiter can never be done()
  • Loading branch information
arthurdarcet committed Nov 24, 2017
1 parent 3bfea0b commit 78eb7b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aiohttp/http_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ def set_transport(self, transport):

if self._drain_waiter is not None:
waiter, self._drain_waiter = self._drain_waiter, None
if not waiter.done():
waiter.set_result(None)
waiter.set_result(None)

async def get_transport(self):
if self._transport is None:
Expand Down

0 comments on commit 78eb7b4

Please sign in to comment.