-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix break during for-await stream causing error
Possible fix for #365. This should fix any cryptic "AbortError: The operation was aborted" errors when running on Node.js versions above v16. It seems that a few breaking changes were made to some stream behaviors in v17(?) that caused for-await-of loop interruptions to be treated as errors by the stream's implicit destroyer. Explicitly calling end() here assures better handling of those interruptions.
- Loading branch information
1 parent
d076642
commit 7e45c91
Showing
1 changed file
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters