Skip to content

Commit

Permalink
Accumulate async data correctly after future done
Browse files Browse the repository at this point in the history
  • Loading branch information
dluyer committed Jan 15, 2020
1 parent f16add7 commit e21bae1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pexpect/_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def data_received(self, data):
spawn._log(s, 'read')

if self.fut.done():
spawn._before.write(s)
spawn._buffer.write(s)
return

Expand Down

0 comments on commit e21bae1

Please sign in to comment.