diff options
-rw-r--r-- | libemail-engine/mail-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c index c12555ff5d..c7bea6326a 100644 --- a/libemail-engine/mail-ops.c +++ b/libemail-engine/mail-ops.c @@ -850,7 +850,7 @@ exit: * camel_service_disconnect_sync(). */ if (g_cancellable_is_cancelled (cancellable)) { camel_service_disconnect_sync (service, FALSE, NULL, NULL); - } else if (error != NULL) { + } else if (local_error != NULL) { camel_service_disconnect_sync (service, FALSE, cancellable, NULL); } else { camel_service_disconnect_sync (service, TRUE, cancellable, &local_error); |