From 2e032e674e6a71c23b7036b3e7cb3dd6280e1b7e Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Tue, 14 Feb 2012 10:06:34 +0100 Subject: [PATCH] audio: do not disconnect on gateway SCO failure Failure on BlueZ-initiated SCO requests should not drop the RFCOMM connection to the gateway. Instead, considering the stream as suspended should be enough. --- audio/gateway.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/gateway.c b/audio/gateway.c index bde3e02c8..163f7b514 100644 --- a/audio/gateway.c +++ b/audio/gateway.c @@ -255,7 +255,7 @@ static void sco_connect_cb(GIOChannel *chan, GError *err, gpointer user_data) if (err) { error("sco_connect_cb(): %s", err->message); - gateway_close(dev); + gateway_suspend_stream(dev); return; } -- 2.47.3