Skip to content
Unverified Commit 35a9ad0d authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Unshift crash reports when they are loaded, to break the recusion



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: default avatarChristoph Wurst <christoph@winzerhof-wurst.at>
parent bdfd2d92
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment