diff options
Diffstat (limited to 'gpgme/wait.c')
| -rw-r--r-- | gpgme/wait.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpgme/wait.c b/gpgme/wait.c index 533a3dec..639f2070 100644 --- a/gpgme/wait.c +++ b/gpgme/wait.c @@ -199,7 +199,8 @@ _gpgme_wait_on_condition (GpgmeCtx ctx, int hang, volatile int *cond) while (hang && !ctx->cancel); if (ctx->cancel) { - ctx->cancel = 0; /* fixme: Fix all functions to return a cancel error. */ + ctx->cancel = 0; + ctx->error = mk_error (Canceled); ctx->pending = 0; } return ctx; |
