Fixed hang on SMTP server failure.

This commit is contained in:
Sergey Vlasov 2001-05-20 07:18:04 +00:00
parent fe6bc3568e
commit 72246fedb5
2 changed files with 6 additions and 0 deletions

View 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

View 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; \
} \
}