Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: call destroy on finish to handle node bug #1040

Merged
merged 3 commits into from
Aug 14, 2019
Merged

Conversation

umutuzgur
Copy link
Member

No description provided.

lib/ios-deploy.js Outdated Show resolved Hide resolved
@@ -72,6 +72,7 @@ class IOSDeploy {
} else {
const readStream = fs.createReadStream(itemPath, {autoClose: true});
const writeStream = await afcService.createWriteStream(pathOnPhone, {autoDestroy: true });
writeStream.on('finish', writeStream.destroy);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which argument writeStream.destroy is supposed to receive?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing since it ended properly

@umutuzgur umutuzgur merged commit 0404f32 into master Aug 14, 2019
@umutuzgur umutuzgur deleted the fix_stream_node branch August 14, 2019 08:21
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants