There is no code that guarantees the state must go through CONNECTING before being CONNECTED. To avoid potential bugs, call setActive anyway here.