imapx_untagged_fetch: Replace assertion with runtime-warning.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 12 Mar 2013 14:53:55 +0000 (10:53 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 12 Mar 2013 14:55:32 +0000 (10:55 -0400)
Temporary Band-Aid until we can figure out why some users are hitting
this assertion.  Libraries should never abort programs on their own.

camel/camel-imapx-server.c

index 095ee9a..6d0893f 100644 (file)
@@ -1952,8 +1952,7 @@ imapx_untagged_fetch (CamelIMAPXServer *is,
 
                                        } while (!found && min <= max);
 
-                                       if (!found)
-                                               g_assert_not_reached ();
+                                       g_return_val_if_fail (found, FALSE);
 
                                        server_flags = r->server_flags;
                                        server_user_flags = r->server_user_flags;