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

transmission failure callback two times #88

Open
z137168075 opened this issue Mar 20, 2017 · 0 comments
Open

transmission failure callback two times #88

z137168075 opened this issue Mar 20, 2017 · 0 comments

Comments

@z137168075
Copy link

scp.js

client.upload(src, client.remote.path, function(err) {
          client.on('close', function closeHandler() {
            callback(err);
            client.removeListener('close', closeHandler);
          });
          client.close();
        });

if transmission failure callback will be performed two times

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant