Fixed long polling regression.

Fixed regression where longpolling transport didn't receive connect messages

#1241