From cf6bb7ecb930acc81765333b2d1b0c0d0426348d Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Thu, 11 Jun 2020 18:03:59 +0200 Subject: [PATCH] Fix passing socket on close server --- lib/s3rver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }