Fix a bug in http server where it never gracefully migrates to new version without restart

This commit is contained in:
Jonatan Nilsson 2020-09-13 15:23:21 +00:00
parent de9efb999f
commit 37737a7ef0
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ export default class HttpServer {
if (!this.active[name]) return false if (!this.active[name]) return false
try { try {
await new Promise((res, rej) => { return await new Promise((res, rej) => {
this.sockets[name].forEach(function(socket) { this.sockets[name].forEach(function(socket) {
socket.destroy() socket.destroy()
}) })

View file

@ -1,6 +1,6 @@
{ {
"name": "service-core", "name": "service-core",
"version": "2.0.0", "version": "2.0.1",
"description": "Core boiler plate code to install node server as windows service", "description": "Core boiler plate code to install node server as windows service",
"main": "lib.mjs", "main": "lib.mjs",
"scripts": { "scripts": {