Repository navigation
Commit 2bf7a7c
committed
events: resume emitter only on early return of async iterator
Move the resume out of closeHandler() into return() behind a
!finished guard, so an emitter that ends on its own is never
resumed after close. readline.Interface.resume() throws after
close, which broke test-readline-async-iterators.
Fixes: #67917
Signed-off-by: bunnysayzz <stfuazzo@gmail.com>1 parent 4ed7b38 commit 2bf7a7c
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1141 | 1145 | | |
1142 | 1146 | | |
1143 | 1147 | | |
| |||
1229 | 1233 | | |
1230 | 1234 | | |
1231 | 1235 | | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
| 1236 | + | |
1236 | 1237 | | |
1237 | 1238 | | |
1238 | 1239 | | |
| |||
0 commit comments