bluetooth: fix resume error handling
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 19 Feb 2018 14:48:25 +0000 (16:48 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 7 Mar 2018 11:40:23 +0000 (13:40 +0200)
commitf6fe411b32c0cf5932fb4f169f5288c76bc6923d
tree86502a7990ef7736980aa8a43ac874090b1f37c5
parent64eef3cf29274b16597035c5dac0fb7a4d25fe1f
bluetooth: fix resume error handling

When resuming a sink or source, pa_sink/source_process_msg() should be
called only if resuming is successful. pa_sink/source_process_msg()
updates thread_info.state and notifies streams about the new state, but
if resuming fails, there's no state change.
src/modules/bluetooth/module-bluez4-device.c
src/modules/bluetooth/module-bluez5-device.c