Switch to use correct method for checking if we're connected.