Fix connection issue
This commit is contained in:
parent
e82ec724e1
commit
dc8a06331b
|
@ -67,6 +67,7 @@ function ErcClientModule(options) {
|
|||
|
||||
self.viewControllers.menu.switchFocus(MciViewIds.InputArea);
|
||||
|
||||
// :TODO: Track actual client->enig connection for optional prevMenu @ final CB
|
||||
self.chatConnection = net.createConnection(connectOpts.port, connectOpts.host);
|
||||
|
||||
self.chatConnection.on('data', data => {
|
||||
|
@ -112,6 +113,7 @@ function ErcClientModule(options) {
|
|||
|
||||
self.chatConnection.once('error', err => {
|
||||
self.client.log.info(`ERC connection error: ${err.message}`);
|
||||
return callback(new Error('Failed connecting to ERC server!'));
|
||||
});
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue