Fixed hang on SMTP server failure.
authorSergey Vlasov <vsu@users.sourceforge.net>
Sun, 20 May 2001 07:18:04 +0000 (07:18 +0000)
committerSergey Vlasov <vsu@users.sourceforge.net>
Sun, 20 May 2001 07:18:04 +0000 (07:18 +0000)
ChangeLog.claws
src/send.c

index 5aee863818e57f2b50a08c9ad4c39badd4085a86..73d51909ec86ee687f0088c791c808d8ce55b540 100644 (file)
@@ -8,6 +8,10 @@
        appropriately.
        (toolbar_reply_to_author_cb): handle the new button.
 
+       * src/send.c (SEND_EXIT_IF_ERROR, SEND_EXIT_IF_NOTOK): call
+       send_progress_dialog_destroy() on failure (fixes hang on SMTP
+       failure).
+
 2001-05-19 [sergey]
 
        * src/compose.h (ComposeReplyMode): new modes
index a0a91c7d1718da06b5c9a5956358cee9481b4d2a..6fd12dbf32fd8fac3c70913378e5b93759a24c5a 100644 (file)
@@ -239,6 +239,7 @@ gint send_message_queue(const gchar *file)
                log_warning("Error occurred while %s\n", s); \
                sock_close(smtp_sock); \
                smtp_sock = NULL; \
+               send_progress_dialog_destroy(dialog); \
                return -1; \
        } \
 }
@@ -251,6 +252,7 @@ gint send_message_queue(const gchar *file)
                        log_warning("Error occurred while sending QUIT\n"); \
                sock_close(smtp_sock); \
                smtp_sock = NULL; \
+               send_progress_dialog_destroy(dialog); \
                return -1; \
        } \
 }