From 5189cfee8080660f06c648397bdfa84871aec5ec Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Tue, 21 Feb 2012 14:57:08 +0100 Subject: [PATCH] obexd: process transfer queue only if none active session_process_queue should make sure there is no active operation, to avoid starting a second one at the same time. --- obexd/client/session.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obexd/client/session.c b/obexd/client/session.c index e113d1f6e..7f387d4fb 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -732,6 +732,9 @@ static void session_process_queue(struct obc_session *session) { struct pending_request *p; + if (session->p != NULL) + return; + if (session->queue == NULL || g_queue_is_empty(session->queue)) return; -- 2.47.3