summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2013-01-12 00:57:54 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2013-01-12 01:02:25 +0100
commitdfa97ae5a7cca82731778d2e8e7e2daf51266ca7 (patch)
tree084d5fa55487f890f92b2a43d4dc92ad22ae8518
parent11a0fb4091ee63777ccc708fc0dc6db7fc9daad6 (diff)
file-xfer: always take error if set in xfer_read_cb()
-rw-r--r--gtk/channel-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index a62501d..706c119 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -1589,7 +1589,7 @@ static void file_xfer_read_cb(GObject *source_object,
file_xfer_data_flushed_cb, task);
} else {
/* Error or EOF, close the file */
- if (count == -1) {
+ if (error) {
task->error = error;
}
g_input_stream_close_async(G_INPUT_STREAM(task->file_stream),