mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
GEventLoop: Don't call process_unprocessed_messages() from itself.
This could be tail-call-optimized but it's not, so we end up overflowing the stack space if we recurse too many times. This was causing crashes when resizing Minesweeper.
This commit is contained in:
parent
c91b0d6b5f
commit
5dee5c325e
2 changed files with 2 additions and 4 deletions
|
@ -43,7 +43,8 @@ private:
|
|||
|
||||
virtual void do_processing() override
|
||||
{
|
||||
process_unprocessed_bundles();
|
||||
while (!m_unprocessed_bundles.is_empty())
|
||||
process_unprocessed_bundles();
|
||||
}
|
||||
|
||||
void wait_for_event();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue