summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pexpect/async.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pexpect/async.py b/pexpect/async.py
index 50eae3b..fe527f3 100644
--- a/pexpect/async.py
+++ b/pexpect/async.py
@@ -56,6 +56,7 @@ class PatternWaiter(asyncio.Protocol):
# N.B. If this gets called, async will close the pipe (the spawn object)
# for us
try:
+ self.expecter.spawn.flag_eof = True
index = self.expecter.eof()
except EOF as e:
self.error(e)
@@ -67,4 +68,4 @@ class PatternWaiter(asyncio.Protocol):
# We may get here without eof_received being called, e.g on Linux
self.eof_received()
elif exc is not None:
- self.error(exc) \ No newline at end of file
+ self.error(exc)