[folks] bluez: Correctly handle OBEX transfers which take zero time
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] bluez: Correctly handle OBEX transfers which take zero time
- Date: Sun, 16 Feb 2014 23:54:38 +0000 (UTC)
commit 0f398ab516bb662727242a753f7fd0ac4a6eb123
Author: Philip Withnall <philip withnall collabora co uk>
Date: Fri Nov 15 11:27:23 2013 +0000
bluez: Correctly handle OBEX transfers which take zero time
If an OBEX transfer takes zero time (say, in an ideal world or, perhaps,
in a unit test) the transfer Status property will start out as
‘complete’ and never change. Previously, completed transfers were only
detected on receipt of a property change notification which, in this
situation, never came. Now, the initial value of the Status property is
also checked.
https://bugzilla.gnome.org/show_bug.cgi?id=712274
backends/bluez/bluez-persona-store.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/backends/bluez/bluez-persona-store.vala b/backends/bluez/bluez-persona-store.vala
index 42a7fff..af341af 100644
--- a/backends/bluez/bluez-persona-store.vala
+++ b/backends/bluez/bluez-persona-store.vala
@@ -593,6 +593,10 @@ public class Folks.Backends.BlueZ.PersonaStore : Folks.PersonaStore
ulong signal_id;
ulong cancellable_id = 0;
+ /* Find the initial status, if it’s already been set. Otherwise it’ll
+ * be null. */
+ transfer_status = transfer.status;
+
/* Set up the cancellable. */
if (cancellable != null)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]