Skip to content

Commit e808a83

Browse files
committed
handle handshake error
1 parent d06f582 commit e808a83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/connection.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ function Connection (opts)
108108
connection.threadId = handshakeCommand.handshake.connectionId;
109109
connection.emit('connect', handshakeCommand.handshake);
110110
});
111+
handshakeCommand.on('error', function(err) {
112+
connection._notifyError(err);
113+
});
111114
this.addCommand(handshakeCommand);
112115
}
113116
}

0 commit comments

Comments
 (0)