diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-01-12 00:57:54 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-01-12 01:02:25 +0100 |
commit | dfa97ae5a7cca82731778d2e8e7e2daf51266ca7 (patch) | |
tree | 084d5fa55487f890f92b2a43d4dc92ad22ae8518 /gtk | |
parent | 11a0fb4091ee63777ccc708fc0dc6db7fc9daad6 (diff) | |
download | spice-gtk-dfa97ae5a7cca82731778d2e8e7e2daf51266ca7.tar.gz spice-gtk-dfa97ae5a7cca82731778d2e8e7e2daf51266ca7.tar.xz spice-gtk-dfa97ae5a7cca82731778d2e8e7e2daf51266ca7.zip |
file-xfer: always take error if set in xfer_read_cb()
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/channel-main.c | 2 |
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), |