client: Fix sending GET while SRM is active
Luiz Augusto von Dentz
maintainerPATCH 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
@@ -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
Johan Hedberg
AppliedHi 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