diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-03-06 06:27:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-03-06 06:27:30 +0800 |
commit | f7589488e0022f45b1ed057c31e1f8216309f31d (patch) | |
tree | d4c36ac56dff9709bcb8324fee8bcff467581719 /calendar/gui/e-meeting-model.c | |
parent | 53e2f660cd38ce121491fe629a12b9d06136add9 (diff) | |
download | gsoc2013-evolution-f7589488e0022f45b1ed057c31e1f8216309f31d.tar.gz gsoc2013-evolution-f7589488e0022f45b1ed057c31e1f8216309f31d.tar.zst gsoc2013-evolution-f7589488e0022f45b1ed057c31e1f8216309f31d.zip |
Fixes #31382
2003-03-05 Rodrigo Moya <rodrigo@ximian.com>
Fixes #31382
* gui/e-meeting-model.c (async_read): don't assume the buffer is
always full, but use GNOME_VFS_ERROR_EOF instead for knowing when
the read has finished.
svn path=/trunk/; revision=20183
Diffstat (limited to 'calendar/gui/e-meeting-model.c')
-rw-r--r-- | calendar/gui/e-meeting-model.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/e-meeting-model.c b/calendar/gui/e-meeting-model.c index 599762428c..d3261bd125 100644 --- a/calendar/gui/e-meeting-model.c +++ b/calendar/gui/e-meeting-model.c @@ -1334,7 +1334,7 @@ async_read (GnomeVFSAsyncHandle *handle, EMeetingModelQueueData *qdata = data; GnomeVFSFileSize buf_size = BUF_SIZE - 1; - if (result != GNOME_VFS_OK) { + if (result != GNOME_VFS_OK && result != GNOME_VFS_ERROR_EOF) { gnome_vfs_async_close (handle, async_close, qdata); return; } @@ -1342,7 +1342,7 @@ async_read (GnomeVFSAsyncHandle *handle, ((char *)buffer)[read] = '\0'; qdata->string = g_string_append (qdata->string, buffer); - if (read < requested) { + if (result == GNOME_VFS_ERROR_EOF) { gnome_vfs_async_close (handle, async_close, qdata); return; } |