888e286a09
The transition from disconnected to connected states must be done in a loop in case the transition fails, not just once and hope it worked.