Clear statusbar's progressbar in case of NNTP xhdr/xover failure.
authorwwp <wwp@free.fr>
Wed, 14 Mar 2018 10:22:47 +0000 (11:22 +0100)
committerwwp <wwp@free.fr>
Wed, 14 Mar 2018 10:22:47 +0000 (11:22 +0100)
src/etpan/nntp-thread.c

index 26079ebf13959f2411843cc58327b90f5dd081b6..3c147d26d12e6ac15886b5ac41c8a5554dcdbb07 100644 (file)
@@ -867,6 +867,7 @@ int nntp_threaded_xover(Folder * folder, guint32 beg, guint32 end, struct newsnn
                        if (l != NULL)
                                newsnntp_xover_resp_list_free(l);
                        newsnntp_xover_resp_list_free(h);
+                       statusbar_progress_all(0, 0, 0);
                        return result.error;
                }
 
@@ -965,6 +966,7 @@ int nntp_threaded_xhdr(Folder * folder, const char *header, guint32 beg, guint32
                        if (l != NULL)
                                newsnntp_xhdr_free(l);
                        newsnntp_xhdr_free(h);
+                       statusbar_progress_all(0, 0, 0);
                        return result.error;
                }