Skip to content
Snippets Groups Projects
Commit 14b1bbb2 authored by Paul Morelle's avatar Paul Morelle
Browse files

[FIX] mail: avoid a stack overflow during loading


When the amount of mail messages is big enough (about 1500?), the
recursion goes deeper and deeper, until the Javascript limit raises an
infinite recursion error.

This commit fixes the issue by avoiding to run an inner
_flushUpdateCycle with the update if the change is not needed, so the
second time that it is reached it does not start a new update, which
would have run another flush update cycle.

closes odoo/odoo#62076

Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent 352e868f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment