Skip to content

Commit 27bd89a

Browse files
committed
Ensure this._transport is valid in debug msg in _open
Fix #448
1 parent a49d141 commit 27bd89a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ SockJS.prototype._transportClose = function(code, reason) {
309309
};
310310

311311
SockJS.prototype._open = function() {
312-
debug('_open', this._transport.transportName, this.readyState);
312+
debug('_open', this._transport && this._transport.transportName, this.readyState);
313313
if (this.readyState === SockJS.CONNECTING) {
314314
if (this._transportTimeoutId) {
315315
clearTimeout(this._transportTimeoutId);

0 commit comments

Comments
 (0)