spmjs / node-scp2

[MAINTAINER WANTED] A pure javascript scp program based on ssh2.
385 stars 96 forks source link

Fix parallel scp calls stealing sessions #20

Closed toddtarsi closed 9 years ago

toddtarsi commented 9 years ago

Collapse the global client into its own thing. Instantiate a new client with each call and pass that through the function so the global client is not overwritten halfway through if a new client is instantiated.

Thanks to @pskupinski and @crypticswarm for pointing out the parallel client issue and code fix.