fix transport checking was always false

This commit is contained in:
Naoyuki Kanezawa
2015-05-02 15:29:01 +09:00
parent 8667f4fbda
commit 191416cbe8

View File

@@ -340,7 +340,7 @@ public class Socket extends Emitter {
logger.fine(String.format("probe transport '%s' pong", name));
self.upgrading = true;
self.emit(EVENT_UPGRADING, transport[0]);
if (null == transport) return;
if (null == transport[0]) return;
Socket.priorWebsocketSuccess = WebSocket.NAME.equals(transport[0].name);
logger.fine(String.format("pausing current transport '%s'", self.transport.name));