diff --git a/src/bank-lib/taler-bank-transfer.c b/src/bank-lib/taler-bank-transfer.c index f3b393372..9065122d5 100644 --- a/src/bank-lib/taler-bank-transfer.c +++ b/src/bank-lib/taler-bank-transfer.c @@ -132,7 +132,7 @@ do_shutdown (void *cls) TALER_BANK_debit_history_cancel (dhh); dhh = NULL; } - if (NULL != eh) + if ( (NULL != eh) && (0 != global_ret)) { TALER_BANK_transfer_cancel (eh); eh = NULL;