removing listener for templates compilation, in order to resolve race condition that was causing slow servers to not actually end up binding to the port as expected

This commit is contained in:
Julian Lam
2014-09-04 21:22:34 -04:00
parent 94a3ecdbd1
commit fae169697e

View File

@@ -124,13 +124,11 @@ if(nconf.get('ssl')) {
emitter.removeAllListeners('templates:compiled').removeAllListeners('meta:js.compiled').removeAllListeners('meta:css.compiled');
});
emitter.on('templates:compiled', function() {
if (process.send) {
callback();
} else {
module.exports.listen();
}
});
if (process.send) {
callback();
} else {
module.exports.listen();
}
};
module.exports.listen = function() {