Clone Executor run only at user command
This commit is contained in:
1 parent
7d9728c250
commit
0ad2de6933
1 file changed
+3
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user