diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-23 13:34:58 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-23 13:34:58 +0200 |
commit | 723e09d915f103fab6f0308d1f11502b72aced92 (patch) | |
tree | 3f5581bbedac89113419e52063012dc284c7e5bd /src | |
parent | 3e4a1539f298192fa07497a9e77be9aa800027c2 (diff) |
GmRequest: Consider a failed request as finished
Diffstat (limited to 'src')
-rw-r--r-- | src/gmrequest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c index 32b71922..15782e01 100644 --- a/src/gmrequest.c +++ b/src/gmrequest.c | |||
@@ -606,7 +606,8 @@ void cancel_GmRequest(iGmRequest *d) { | |||
606 | 606 | ||
607 | iBool isFinished_GmRequest(const iGmRequest *d) { | 607 | iBool isFinished_GmRequest(const iGmRequest *d) { |
608 | iBool done; | 608 | iBool done; |
609 | iGuardMutex(&d->mutex, done = (d->state == finished_GmRequestState)); | 609 | iGuardMutex(&d->mutex, |
610 | done = (d->state == finished_GmRequestState || d->state == failure_GmRequestState)); | ||
610 | return done; | 611 | return done; |
611 | } | 612 | } |
612 | 613 | ||