---
src/emulator.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/emulator.c b/src/emulator.c
index 4c81a39..0a5c67e 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -1683,6 +1683,7 @@ int ofono_emulator_start_codec_negotiation(struct ofono_emulator
*em,
{
char buf[64];
unsigned char codec;
+ int err;
if (em == NULL)
return -EINVAL;
@@ -1707,7 +1708,11 @@ int ofono_emulator_start_codec_negotiation(struct ofono_emulator
*em,
* already have a negotiated codec we can proceed here
* without doing any negotiation again.
*/
- ofono_handsfree_card_connect_sco(em->card);
+ err = ofono_handsfree_card_connect_sco(em->card);
+ if (err < 0) {
+ ofono_error("SCO connection failed");
+ return err;
+ }
return 0;
}
--
2.5.0
Show replies by date