Skip to content

Commit

Permalink
fix: Increase amount of timeout when waiting for blockquotes to be di…
Browse files Browse the repository at this point in the history
…splayed (fixes thunderbird-conversations#2121).
  • Loading branch information
Standard8 committed Nov 3, 2024
1 parent 0fd72fb commit 7d4a636
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/content/components/message/messageIFrame.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ async function runUntilValid(func, validator) {
if (validator(ret)) {
return ret;
}
const TIMEOUTS = [0, 0, 10, 10, 10];
// Wait for up to half a second.
const TIMEOUTS = [
0, 0, 10, 10, 10, 10, 20, 20, 20, 50, 50, 50, 50, 50, 50, 50, 50,
];
for (const timeout of TIMEOUTS) {
await sleep(timeout);
ret = func();
Expand Down

0 comments on commit 7d4a636

Please sign in to comment.