1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Disable max event listener warning on server

Fixes #238
This commit is contained in:
Nick O'Leary 2014-06-08 00:01:29 +01:00
parent 72476cc8a7
commit 8e48251f26

1
red.js
View File

@ -82,6 +82,7 @@ if (settings.https) {
} else { } else {
server = http.createServer(function(req,res){app(req,res);}); server = http.createServer(function(req,res){app(req,res);});
} }
server.setMaxListeners(0);
function formatRoot(root) { function formatRoot(root) {
if (root[0] != "/") { if (root[0] != "/") {