Skip to content

Commit

Permalink
Fix passing socket on close server
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Feb 11, 2021
1 parent 130dd70 commit cf6bb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/s3rver.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class S3rver extends Koa {
*/
stop(callback) {
if (typeof callback === 'function') {
return this.httpServer.stop();
return this.httpServer.stop(callback);
} else {
return new Promise(resolve => this.httpServer.stop(resolve));
}
Expand Down

0 comments on commit cf6bb7e

Please sign in to comment.