Skip to content

Commit

Permalink
Ensure this._transport is valid in debug msg in _open
Browse files Browse the repository at this point in the history
Fix #448
  • Loading branch information
brycekahle committed Aug 22, 2019
1 parent a49d141 commit 27bd89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.js
Expand Up @@ -309,7 +309,7 @@ SockJS.prototype._transportClose = function(code, reason) {
};

SockJS.prototype._open = function() {
debug('_open', this._transport.transportName, this.readyState);
debug('_open', this._transport && this._transport.transportName, this.readyState);
if (this.readyState === SockJS.CONNECTING) {
if (this._transportTimeoutId) {
clearTimeout(this._transportTimeoutId);
Expand Down

0 comments on commit 27bd89a

Please sign in to comment.