Fix undefined options

This commit is contained in:
Sashko Stubailo
2017-11-09 14:53:00 -08:00
parent dadd4323e4
commit af0ecc0aab

View File

@@ -1611,7 +1611,7 @@ export class Connection {
'DDP version negotiation failed; server requested version ' +
msg.version;
this._stream.disconnect({ _permanent: true, _error: description });
options.onDDPVersionNegotiationFailure(description);
this.options.onDDPVersionNegotiationFailure(description);
}
} else if (msg.msg === 'ping' && this.options.respondToPings) {
this._send({ msg: 'pong', id: msg.id });