Skip to content

Commit

Permalink
don't start server when it is disabled (meinaart#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
shirotech authored Aug 11, 2020
1 parent 158402d commit 3dbe84c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/initServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function initServer(config) {
}
});

server.listen(config.serverPort, config.serverHost);
if (config.serverEnabled) {
server.listen(config.serverPort, config.serverHost);
}
}

module.exports = initServer;

0 comments on commit 3dbe84c

Please sign in to comment.