Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stop loop on internalDecayItem function #1725

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

dudantas
Copy link
Member

This fixes a critical issue where an infinite loop is triggered if an item attempts to decay to an ID that matches its equip or unequip transformation ID. Previously, this scenario would lead to an endless loop, causing performance degradation and potentially leading to application instability.

The fix involves adding a conditional check to identify this edge case and take appropriate action, such as removing the item and logging an error, thereby breaking the loop, and maintaining application performance.

Includes:

  • Additional conditional checks in the decay logic
  • Enhanced logging for debugging

@dudantas dudantas linked an issue Oct 21, 2023 that may be closed by this pull request
5 tasks
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dudantas dudantas merged commit e2263fe into main Oct 21, 2023
28 checks passed
@dudantas dudantas deleted the fix-loop-internal-decay-item branch October 21, 2023 01:06
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.

Crash server equipping ring
2 participants