From 8a26395e79039613bdc9b2db11683b458aaebc32 Mon Sep 17 00:00:00 2001 From: Chiedo John <2156688+chiedo@users.noreply.github.com> Date: Wed, 21 Oct 2020 10:26:50 -0400 Subject: [PATCH] Prevent warmserver from blocking the port from being attached (#16150) Co-authored-by: Chiedo --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 5cf817bdb434..ea30fbad6465 100644 --- a/server.js +++ b/server.js @@ -17,7 +17,7 @@ if (!module.parent) { portUsed.check(port).then(async status => { if (status === false) { // If in production, warm the server at the start - if (process.env.NODE_ENV === 'production') await warmServer() + if (process.env.NODE_ENV === 'production') warmServer() // workaround for https://github.com/expressjs/express/issues/1101 const server = require('http').createServer(app)