You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Quest progress is not atomic when two events for one character run in parallel #3265
Every quest progress path in QuestService updates an objective and then decides whether the quest is complete, with nothing that serialises two events for the same character. This covers kills, captures, collects and enemy-player defeats. If two events for one character run on different threads, both can see the quest as just completed and both can call CompleteQuestAsync, which would grant the reward twice. For example, an area skill could kill the last two monsters at once, or two enemy players could be defeated at the same moment in Glacernon.
CompleteQuestAsync doesn't refuse a second call, so a fix belongs in QuestService for all paths at once. One option is a per-character gate around progress plus completion, or an atomic claim on ObjectivesCompletedOn. A test should fire two concurrent events and check that the reward is given once.
Activity
Complete a quest once when two events finish it together