Make headset connection attempt really cancelable.

The io channel should be stored in order to cancel connection attempt,
but this also fixes the situation where the headset connects back while
we are trying to connect to it.
1 file changed