Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #27663

If, for whatever reason, during the loading of a crash reporter a new
log entry is generated, then the lazy loading mechanism will be invoked
*again* while it's already executed. This doesn't result in an endless
recursion, but means that the crash reporters will be built and
registered many times. This then means any further log entry will be
logged x times instead of once.

Unshift makes sure to take the class off the registration list right
away, so another invokation of the same method won't try to do the same
job.

Signed-off-by: Christoph Wurst <[email protected]>
@ChristophWurst ChristophWurst merged commit 22d2f05 into stable21 Jun 25, 2021
@ChristophWurst ChristophWurst deleted the backport/27663/stable21 branch June 25, 2021 11:57
@blizzz blizzz mentioned this pull request Jun 29, 2021
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants