[spice-gtk v4 09/24] main: do not check for xfer-task errors

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

 



file_xfer_flush_finish and file_xfer_data_flushed_cb are channel-main
function and should not check for SpiceFileTransferTask internal
errors.
---
 src/channel-main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/channel-main.c b/src/channel-main.c
index be5a454..fef72cd 100644
--- a/src/channel-main.c
+++ b/src/channel-main.c
@@ -1893,7 +1893,7 @@ static void file_xfer_data_flushed_cb(GObject *source_object,
     GError *error = NULL;
 
     file_xfer_flush_finish(channel, res, &error);
-    if (error || self->error) {
+    if (error) {
         spice_file_transfer_task_completed(self, error);
         return;
     }
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]