bbfb44a0fe
Added change to set connection type correctly and clear array when it is
full in reattempt connection flow