[gnome-bluetooth] sendto: fix check for current_transfer proxy



commit e522ab4050a273b752ab3e6af9e64b25112105ca
Author: Gustavo Padovan <gustavo padovan collabora co uk>
Date:   Thu Jun 13 17:18:53 2013 +0100

    sendto: fix check for current_transfer proxy
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701399

 sendto/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index f2e0fd9..39c6e2f 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -166,7 +166,7 @@ transfer_proxy (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
 
        current_transfer = g_dbus_proxy_new_finish (res, &error);
 
-       if (current_transfer != NULL) {
+       if (current_transfer == NULL) {
                if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
                        g_error_free (error);
                        return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]