[evolution-activesync] Add missing unlock on INVALIDSYNCKEY code path



commit 9fdab30f3c4099c22e691892e7f59bcb379b00ef
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Mar 25 10:46:40 2015 +0000

    Add missing unlock on INVALIDSYNCKEY code path

 camel/camel-eas-folder.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-eas-folder.c b/camel/camel-eas-folder.c
index 15c34f8..e068f20 100644
--- a/camel/camel-eas-folder.c
+++ b/camel/camel-eas-folder.c
@@ -685,8 +685,10 @@ eas_refresh_info_sync (CamelFolder *folder, GCancellable *cancellable, GError **
                if (!res) {
                        if (!resynced && !progress_data.fetched &&
                            g_error_matches (local_error, EAS_CONNECTION_ERROR,
-                                            EAS_CONNECTION_SYNC_ERROR_INVALIDSYNCKEY))
+                                            EAS_CONNECTION_SYNC_ERROR_INVALIDSYNCKEY)) {
+                               g_mutex_unlock (&priv->server_lock);
                                goto invsync;
+                       }
                        g_propagate_error(error, local_error);
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]