shouldn't this be just moved into the "else" block above? looks like it is executed only for non-longPolling transports.