[evolution-data-server] imapx_command_fetch_message_done: Fix an error handling issue.



commit c2272ef6eed437ad108baa81096047693e4ac082
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Jun 19 10:44:31 2012 -0400

    imapx_command_fetch_message_done: Fix an error handling issue.

 camel/camel-imapx-server.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index 1bde53f..1757240 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -3311,10 +3311,12 @@ imapx_command_fetch_message_done (CamelIMAPXServer *is,
 							&job->error, CAMEL_IMAPX_ERROR, 1,
 							"failed to copy the tmp file");
 					g_free (cache_file);
-				} else
+				} else {
 					g_prefix_error (
 						&job->error,
 						_("Closing tmp stream failed: "));
+					success = FALSE;
+				}
 
 				g_free (tmp);
 				g_object_unref (data->stream);



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