diff options
Diffstat (limited to 'src/gmrequest.c')
-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 | ||