Skip to content

Commit

Permalink
fix: add values to resolved promises
Browse files Browse the repository at this point in the history
  • Loading branch information
trs committed Oct 31, 2017
1 parent d787d4c commit a7103de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class FtpServer {
ip: this.url.hostname,
port: this.url.port
}, 'Listening');
resolve();
resolve('Listening');
});
});
});
Expand Down Expand Up @@ -125,7 +125,7 @@ class FtpServer {
} catch (err) {
this.log.error(err, 'Error closing connection', {id});
} finally {
resolve();
resolve('Disconnected');
}
});
}
Expand All @@ -142,7 +142,7 @@ class FtpServer {
.then(() => when.promise(resolve => {
this.server.close(err => {
if (err) this.log.error(err, 'Error closing server');
resolve();
resolve('Closed');
});
}));
}
Expand Down

0 comments on commit a7103de

Please sign in to comment.