mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user