diff --git a/server.js b/server.js index f951ebd68..50d5fe20c 100644 --- a/server.js +++ b/server.js @@ -38,7 +38,6 @@ let isHttpServerStarted = false let cloneExecutorChildProcess startHtttpServer() -startCloneExecutor() function startHtttpServer() { if (CONSOLE_LOG === true) { console.log('[INFO] server -> startHtttpServer -> Entering function.') } @@ -95,7 +94,9 @@ function stopCloneExecutor() { } }; - kill(cloneExecutorChildProcess.pid); + if (cloneExecutorChildProcess) { + kill(cloneExecutorChildProcess.pid); + } } function onBrowserRequest(request, response) {