[phodav: 1/3] spice: read_thread: return number of read bytes on EOF
- From: Victor Toso <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav: 1/3] spice: read_thread: return number of read bytes on EOF
- Date: Tue, 23 Jul 2019 07:06:02 +0000 (UTC)
commit 57cd008250ac8683fe1c22ff7429c1d5a9a51a31
Author: Jakub Janků <jjanku redhat com>
Date: Mon Jul 1 09:43:06 2019 +0200
spice: read_thread: return number of read bytes on EOF
We already check with each input_stream_read_thread_finish()
whether the count of the read bytes matches the requested one.
Also, this is the way GLib handles it.
Signed-off-by: Jakub Janků <jjanku redhat com>
spice/spice-webdavd.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
index f814890..81b4d91 100644
--- a/spice/spice-webdavd.c
+++ b/spice/spice-webdavd.c
@@ -180,10 +180,6 @@ read_thread (GTask *task,
g_debug ("error: %s", error->message);
g_task_return_error (task, error);
}
- if (bread != data->count)
- {
- g_task_return_int (task, -1);
- }
else
{
g_task_return_int (task, bread);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]