Skip to contentSkip to conversation

client: Fix sending GET while SRM is active

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Feb 13, 2012 – Feb 14, 2012 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 client: Fix sending GET while SRM is active

From: Luiz Augusto von Dentz <[email protected]>

If SRM is active remote will be generating responses automatically

---
 client/transfer.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
client/transfer.c +5 -2
index 8677b07..157811d 100644
@@ -383,10 +383,13 @@ static void get_buf_xfer_progress(GObex *obex, GError *err, GObexPacket *rsp,
 		return;
 	}
 
-	req = g_obex_packet_new(G_OBEX_OP_GET, TRUE, G_OBEX_HDR_INVALID);
+	if (!g_obex_srm_active(obex)) {
+		req = g_obex_packet_new(G_OBEX_OP_GET, TRUE, G_OBEX_HDR_INVALID);
 
-	transfer->xfer = g_obex_send_req(obex, req, -1, get_buf_xfer_progress,
+		transfer->xfer = g_obex_send_req(obex, req, -1,
+							get_buf_xfer_progress,
 							transfer, &err);
+	}
 
 	if (callback)
 		callback->func(transfer, transfer->transferred, err,
Signature · 1 line
1.7.7.6
#1 lore raw

Hi Luiz,

Quoted 6 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

If SRM is active remote will be generating responses automatically

---
 client/transfer.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

Applied. Thanks.

Johan