diff --git a/lib/http-server/http-server.js b/lib/http-server/http-server.js index cef93ef..a384f9f 100644 --- a/lib/http-server/http-server.js +++ b/lib/http-server/http-server.js @@ -68,9 +68,9 @@ class HttpServer { */ start() { // Start a http server - this.server = this.app.listen(this.port, this.host, () => { + this.server = this.app.listen(this.port, () => { Logger.info(`HttpServer : Listening on ${this.host}:${this.port}`) - }) + }, this.host) this.server.timeout = 600 * 1000 // @see https://github.com/nodejs/node/issues/13391 @@ -83,8 +83,8 @@ class HttpServer { * Stop the http server */ stop() { - if (this.app === null) return - this.app.close() + if (this.server == null) return + this.server.close() } /**