bluetooth: Only close SCO if status has changed
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Fri, 29 Apr 2011 14:48:07 +0000 (17:48 +0300)
committerColin Guthrie <colin@mageia.org>
Sat, 30 Apr 2011 13:26:46 +0000 (14:26 +0100)
commit94e12b9aec4682d3b990bf454a80a0ca447c3f19
treee84fef647b9ff08cb979c5aaeb81f771c017e92a
parent6f99198c41f7f5be466d942beca2e4e2c129e70d
bluetooth: Only close SCO if status has changed

In case the io thread is starting there is no point on closing SCO just
to resume it latter when the source/sink changes to opened state.
src/modules/bluetooth/module-bluetooth-device.c