imapx_parser_thread: Avoid piling up GErrors.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 10 Jan 2011 22:59:18 +0000 (17:59 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 10 Jan 2011 22:59:18 +0000 (17:59 -0500)
camel/providers/imapx/camel-imapx-server.c

index 0f06dd3..33e0156 100644 (file)
@@ -4901,6 +4901,10 @@ imapx_parser_thread (gpointer d)
                                errno = EINTR;
                }
 
+               /* Jump out of the loop if an error occurred. */
+               if (local_error != NULL)
+                       break;
+
                if (is->parser_quit) {
                        g_set_error (
                                &local_error, G_IO_ERROR,