RSSyl: Stop earlier when an invalid feed is encountered.
[claws.git] / src / plugins / rssyl / rssyl_update_feed.c
index a9d1129ab8726a378f6201a76ed1a8a07b242602..e74045c99e650ae970cf246b9d1709b2f90b1f0e 100644 (file)
@@ -134,7 +134,7 @@ void rssyl_fetch_feed(RFetchCtx *ctx, RSSylVerboseFlags verbose)
 
                ctx->success = FALSE;
        } else {
-               if( ctx->feed == NULL ) {
+               if( ctx->feed == NULL || ctx->response_code == FEED_ERR_NOFEED) {
                        if( verbose & RSSYL_SHOW_ERRORS) {
                                gchar *msg = g_markup_printf_escaped(
                                                (const char *) _("No valid feed found at\n<b>%s</b>"),