summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange/taler-exchange-wirewatch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
index a5efda72c..85e73d1be 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -546,8 +546,6 @@ do_commit (struct WireAccount *wa)
GNUNET_assert (NULL == task);
shard_done = check_shard_done (wa);
wa->started_transaction = false;
- if (shard_done)
- wa->shard_open = false;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Committing %s progress (%llu,%llu] at %llu\n (%s)",
wa->job_name,
@@ -574,10 +572,15 @@ do_commit (struct WireAccount *wa)
break;
}
if (shard_done)
+ {
+ wa->shard_open = false;
account_completed (wa);
+ }
else
+ {
task = GNUNET_SCHEDULER_add_now (&continue_with_shard,
wa);
+ }
}