Commit: 5c92e9b1cc9b985ec38c19d16c8ddce48b6ca2ae
Parent: c59cab53413ed50359fad5f752869a51572e6413
Author: Mikel Astiz <mikel.astiz@bmw-carit.de>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:58
Tree: 6b1e52e75426b9b31eb8fa2fcb6585f9d1d24f06

obexd: Remove transfer from queue before callback It is safer to remove the transfer from the internal queue (including session->p) before calling the transfer callback. This makes sure the callback will not manipulate the session in a way that the transfer is removed more than once. This was previously protected with session->p->id != 0 checks, but once the new callbacks have been adopted in session API, this logic can be removed.

Diffstat

M obexd/client/session.c | 20 +++++++++- - - - - - - - - - -

1 files changed, 9 insertions(+), 11 deletions(-)

View Full Diff | Patch