agent: Declare the stream to be CONNECTED only if a pair is selected
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 31 Jul 2014 19:16:38 +0000 (15:16 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 9 Oct 2014 19:28:21 +0000 (15:28 -0400)
commitfcb1b84fd81f7db7dfe25bad824cb7fcfb254469
treea80593983db7ed6a67ff26d610295aa3a18891a2
parent70fed5e9eb4f0046f85db81f2981dca589ac84fe
agent: Declare the stream to be CONNECTED only if a pair is selected

Don't change the state if no pair is selected. Otherwise we get
a component that claims to be CONNECTED but has no selected pair.
Also, set the selected pair before announcing the state change.
agent/conncheck.c