OSDN Git Service

obexd: Remove transferred file only if the GET operation failed
authorChristian Fetzer <christian.fetzer@bmw-carit.de>
Fri, 11 Jan 2013 15:55:57 +0000 (16:55 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 14 Jan 2013 15:42:06 +0000 (17:42 +0200)
commit363e55779dc83b2bf3c181edffbe7357d3bc3844
treedbaec53f5736692c902cb2abe3ad331760ac204e
parent86de58620486b3831893862086b95d38387437be
obexd: Remove transferred file only if the GET operation failed

Since 9606375649e12f1b9f302bbb5bb8f87957387ddd xfer_complete() sets the
transfer status rather than the size. Adapt obc_transfer_free to check
for the completed status to avoid deletion of completed transfers.
obexd/client/transfer.c