}
});
}
else
{
final ClientTransport newTransport = transports.get(0);
updateBayeuxClientState(new BayeuxClientStateUpdater()
{
@Override
public BayeuxClientState create(BayeuxClientState oldState)
{
if (newTransport != oldState.transport)
prepareTransport(oldState.transport, newTransport);
onTransportFailure(oldState.transport.getName(), newTransport.getName(), failure);
return new RehandshakingState(oldState.handshakeFields, oldState.callback, newTransport, oldState.nextBackoff());
}
});
}
super.onFailure(failure, messages);