diff --git a/lib/s3rver.js b/lib/s3rver.js index 4a70e45d..85e641c2 100644 --- a/lib/s3rver.js +++ b/lib/s3rver.js @@ -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)); }