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

Problem with directory name when pass options object. #192

Open
umartinez22 opened this issue Apr 1, 2019 · 0 comments
Open

Problem with directory name when pass options object. #192

umartinez22 opened this issue Apr 1, 2019 · 0 comments

Comments

@umartinez22
Copy link

umartinez22 commented Apr 1, 2019

When options object is passing by arguments like var engine = torrentStream(link, options);, the options object is mutated and the path value will be the same for others execution.

For example:

var engine = torrentStream(link, options);
engine = torrentStream(otherLink, options);

Then when the torrent is downloading the directory name (with hash) is the same for all file.

Posible soluction:

  • Copy the object options into the function torrentStream insted of mutate the object.
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

No branches or pull requests

1 participant