[evolution-data-server] [IMAPx] Treat G_IO_ERROR_CLOSED as a reason to try to reconnect
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] Treat G_IO_ERROR_CLOSED as a reason to try to reconnect
- Date: Fri, 7 Aug 2015 06:16:26 +0000 (UTC)
commit a073eeec7e7cd92b4beade3c2bf0f1c40aa86cf1
Author: Milan Crha <mcrha redhat com>
Date: Fri Aug 7 08:13:59 2015 +0200
[IMAPx] Treat G_IO_ERROR_CLOSED as a reason to try to reconnect
This error (Socket is already closed) could get into the UI when
for example an update of the folders was ongoing and user changed
setting in Evolution's UI, which causes disconnect, thus the job
could use a closed socket, which returns this error.
camel/providers/imapx/camel-imapx-conn-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-conn-manager.c
b/camel/providers/imapx/camel-imapx-conn-manager.c
index a8edbeb..280caeb 100644
--- a/camel/providers/imapx/camel-imapx-conn-manager.c
+++ b/camel/providers/imapx/camel-imapx-conn-manager.c
@@ -977,7 +977,8 @@ camel_imapx_conn_manager_run_job_sync (CamelIMAPXConnManager *conn_man,
imapx_conn_manager_remove_info (conn_man, cinfo);
if (!local_error || local_error->domain == CAMEL_IMAPX_ERROR ||
- g_error_matches (local_error, G_TLS_ERROR, G_TLS_ERROR_MISC)) {
+ g_error_matches (local_error, G_TLS_ERROR, G_TLS_ERROR_MISC) ||
+ g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CLOSED)) {
GError *tmp = local_error;
local_error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]