[gnome-builder] transfers: ensure successful transfer task completes



commit b682f8e24464b0b8a8a8c5f1f66219e4baad8b30
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 10 17:49:41 2017 -0800

    transfers: ensure successful transfer task completes
    
    Tasks were not getting completed when they were successful transfers due
    to only returning an error and not success.

 libide/transfers/ide-transfer-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/transfers/ide-transfer-manager.c b/libide/transfers/ide-transfer-manager.c
index 76739e5..465ba70 100644
--- a/libide/transfers/ide-transfer-manager.c
+++ b/libide/transfers/ide-transfer-manager.c
@@ -366,6 +366,7 @@ ide_transfer_manager_execute_cb (GObject      *object,
   else
     {
       g_signal_emit (self, signals[TRANSFER_COMPLETED], 0, transfer);
+      g_task_return_boolean (task, TRUE);
     }
 
   if (!ide_transfer_manager_get_has_active (self))


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