summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index 14f77405..53a3d031 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -211,9 +211,11 @@ static void readIncoming_GmRequest_(iGmRequest *d, iTlsRequest *req) {
211 initCurrent_Time(&resp->when); 211 initCurrent_Time(&resp->when);
212 delete_Block(data); 212 delete_Block(data);
213 unlock_Mutex(d->mtx); 213 unlock_Mutex(d->mtx);
214 const iBool allowed = exchange_Atomic(&d->allowUpdate, iFalse); 214 if (notifyUpdate) {
215 if (notifyUpdate && allowed) { 215 const iBool allowed = exchange_Atomic(&d->allowUpdate, iFalse);
216 iNotifyAudience(d, updated, GmRequestUpdated); 216 if (allowed) {
217 iNotifyAudience(d, updated, GmRequestUpdated);
218 }
217 } 219 }
218 if (notifyDone) { 220 if (notifyDone) {
219 iNotifyAudience(d, finished, GmRequestFinished); 221 iNotifyAudience(d, finished, GmRequestFinished);