* [PATCH] Fix emitting TransferCompleted twice
@ 2010-09-28 13:19 Luiz Augusto von Dentz
2010-09-28 13:41 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2010-09-28 13:19 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
This is caused by REQDONE and latter disconnect generating duplicate
signals in case of opp.
To fix this now we check if the object is valid before proceeding.
---
src/manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/manager.c b/src/manager.c
index 78a329c..80140b6 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -648,7 +648,8 @@ void manager_emit_transfer_progress(struct obex_session *os)
void manager_emit_transfer_completed(struct obex_session *os)
{
- emit_transfer_completed(os->cid, !os->aborted);
+ if (os->object)
+ emit_transfer_completed(os->cid, !os->aborted);
}
DBusConnection *obex_dbus_get_connection(void)
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-28 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 13:19 [PATCH] Fix emitting TransferCompleted twice Luiz Augusto von Dentz
2010-09-28 13:41 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox