Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit ffcf79b

Browse files
committed
Merge pull request #39 from germanrio/Close_connection_scp_downloading
Pass arguments to callback
2 parents 83e1333 + c10e3bc commit ffcf79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function cp2local(client, src, dest, callback) {
8383
}
8484
client.download(remote.path, dest, function () {
8585
client.close();
86-
callback();
86+
callback.apply(this, arguments);
8787
});
8888
}
8989

0 commit comments

Comments
 (0)