Page 1 of 1 message handling race condition

Posted: Thu Sep 06, 2018 1:03 am
by skriptimaahinen

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 ( ... 125#p98358) is the right way to go.