message handling race condition

Bug reports and enhancement requests
Post Reply
Senior Member
Posts: 127
Joined: Wed Jan 10, 2018 7:37 am message handling race condition

Post by skriptimaahinen » Thu Sep 06, 2018 1:03 am


Code: Select all

if (!childPolicy) {
  debug(`No answer to fetchChildPolicy message. Still initializing?`);
  setTimeout(notifyPage, 300);
That's just going to cause a loop. The real problem is that Message.js:dispatch still does not prevent wrong onMessage listener from answering first.

I still think my previous suggestion (https://forums.informaction.com/viewtop ... 125#p98358) is the right way to go.

Post Reply