Kill TL when ident can't start up (#4512)
Fixes: https://github.com/thelounge/thelounge/issues/4509
This commit is contained in:
parent
e362704f6b
commit
37d7de7671
@ -27,7 +27,9 @@ class Identification {
|
||||
|
||||
const server = net.createServer(this.serverConnection.bind(this));
|
||||
|
||||
server.on("error", (err) => log.error(`Identd server error: ${err}`));
|
||||
server.on("error", (err) => {
|
||||
startedCallback(this, err);
|
||||
});
|
||||
|
||||
server.listen(
|
||||
{
|
||||
|
@ -199,7 +199,12 @@ module.exports = function (options = {}) {
|
||||
Helper.config.themeColor = defaultTheme.themeColor;
|
||||
}
|
||||
|
||||
new Identification((identHandler) => {
|
||||
new Identification((identHandler, err) => {
|
||||
if (err) {
|
||||
log.error(`Could not start identd server, ${err.message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
manager.init(identHandler, sockets);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user