I believe the `device.connected` doesn't indicate whether a headset is connected according to the information from platform dev. 
Could you explain why we need this check here? The logic here is: we just send connection request out, so it shows 'connecting' first.
Do you find any racing problem that cause the device has been connected at this moment?