Diff between 9a0f822e86ad5274ebb8d0a53e006f8b3e95ac7c and b29147c00079b72cb386ea3c388f9c0d9e5540a2

Changed Files

File Additions Deletions Status
obexd/gwobex/obex-priv.c +2 -2 modified

Full Patch

diff --git a/obexd/gwobex/obex-priv.c b/obexd/gwobex/obex-priv.c
index 8a4e22e..a08599f 100644
--- a/obexd/gwobex/obex-priv.c
+++ b/obexd/gwobex/obex-priv.c
@@ -637,10 +637,10 @@ gboolean gw_obex_cb(GIOChannel *chan, GIOCondition cond, gpointer data) {
         debug("gw_obex_cb: error or connection closed\n");
         obex_link_error(ctx);
         GW_OBEX_UNLOCK(ctx);
-        if (ctx->dc_cb)
-            ctx->dc_cb(ctx, ctx->dc_data);
         if (ctx->xfer && ctx->xfer->cb)
             ctx->xfer->cb(ctx->xfer, ctx->xfer->cb_data);
+	else if (ctx->dc_cb)
+            ctx->dc_cb(ctx, ctx->dc_data);
         return FALSE;
     }