mirror of
https://github.com/thelounge/thelounge
synced 2024-11-11 07:04:18 +00:00
Fix crash on failed TLS connect
This commit is contained in:
parent
90a3bb8ba8
commit
5e6ac19d0f
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ Client.prototype.connect = function(args) {
|
|||
|
||||
var stream = args.tls ? tls.connect(server) : net.connect(server);
|
||||
|
||||
(stream.socket || stream).on("error", function(e) {
|
||||
stream.on("error", function(e) {
|
||||
console.log("Client#connect():\n" + e);
|
||||
stream.end();
|
||||
var msg = new Msg({
|
||||
|
|
Loading…
Reference in a new issue