summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-25 08:44:56 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-25 08:44:56 +0200
commit9c2b9929045a4121ce81b3e28a1a7ab742a3daa8 (patch)
tree5dbcba5ccb393dfde2efffad407280aba0ca6be9 /src/gmrequest.c
parentf8d61470d6493f24ab31e93ffb3d40de7f6970d0 (diff)
GmRequest: Fixed lack of update notifications
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);