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

v1.18.x
Julian Lam 11 years ago
parent 94a3ecdbd1
commit fae169697e

@ -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() {

Loading…
Cancel
Save