[evolution-data-server/evolution-data-server-3-12] Bug 740585 - [IMAPx] Ignore timeout when no command is running
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/evolution-data-server-3-12] Bug 740585 - [IMAPx] Ignore timeout when no command is running
- Date: Thu, 27 Nov 2014 14:16:59 +0000 (UTC)
commit 40335762eb4f6394c0ea4381aca436cd4c126c05
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 27 15:15:13 2014 +0100
Bug 740585 - [IMAPx] Ignore timeout when no command is running
camel/providers/imapx/camel-imapx-server.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 4f6f35b..ff5fa96 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -7694,6 +7694,15 @@ imapx_ready_to_read (GInputStream *input_stream,
g_clear_object (&output_stream);
g_clear_object (&cancellable);
+ if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_TIMED_OUT)) {
+ QUEUE_LOCK (is);
+ if (camel_imapx_command_queue_is_empty (is->active) && is->state != IMAPX_SHUTDOWN) {
+ camel_imapx_debug (io, is->tagprefix, "Ignoring timeout error, nothing was waiting
(original error: %s)\n", local_error->message);
+ g_clear_error (&local_error);
+ }
+ QUEUE_UNLOCK (is);
+ }
+
if (local_error != NULL) {
camel_imapx_debug (io, is->tagprefix, "Data read failed with error '%s'\n",
local_error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]