summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index 53a3d031..7443c68c 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -615,10 +615,12 @@ iGmResponse *lockResponse_GmRequest(iGmRequest *d) {
615} 615}
616 616
617void unlockResponse_GmRequest(iGmRequest *d) { 617void unlockResponse_GmRequest(iGmRequest *d) {
618 iAssert(d->respLocked); 618 if (d) {
619 d->respLocked = iFalse; 619 iAssert(d->respLocked);
620 set_Atomic(&d->allowUpdate, iTrue); 620 d->respLocked = iFalse;
621 unlock_Mutex(d->mtx); 621 set_Atomic(&d->allowUpdate, iTrue);
622 unlock_Mutex(d->mtx);
623 }
622} 624}
623 625
624iBool isFinished_GmRequest(const iGmRequest *d) { 626iBool isFinished_GmRequest(const iGmRequest *d) {