mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
@@ -165,13 +165,13 @@ Polling.prototype.doClose = function(){
|
||||
self.write([{ type: 'close' }]);
|
||||
}
|
||||
|
||||
if (this.open) {
|
||||
if ('open' == this.readyState) {
|
||||
debug('transport open - closing');
|
||||
close();
|
||||
} else {
|
||||
// in case we're trying to close while
|
||||
// handshaking is in progress (GH-164)
|
||||
debug('transport not open - defering close');
|
||||
debug('transport not open - deferring close');
|
||||
this.once('open', close);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user