aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-operation.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-operation.c')
-rw-r--r--camel/camel-operation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-operation.c b/camel/camel-operation.c
index 1358cc15ab..e44d7ffde9 100644
--- a/camel/camel-operation.c
+++ b/camel/camel-operation.c
@@ -563,9 +563,9 @@ void camel_operation_progress(CamelOperation *cc, int pc)
s->pc = pc;
now = stamp();
- if (cc->status_update != now
- && s->flags & CAMEL_OPERATION_TRANSIENT
- && s->stamp/16 > now/16)
+ if (cc->status_update == now
+ || (s->flags & CAMEL_OPERATION_TRANSIENT
+ && s->stamp/16 > now/16))
cc = NULL;
else {
s->stamp = cc->status_update = now;