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

[MIRROR] Fixes a race condition in mutations code #718

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#25116
Original PR: tgstation/tgstation#79829

About The Pull Request

One of the timers has a callback to the modify() proc which also doesn't check whether the mutation owner has been deleted since the timer began, potentially resulting in a runtime.

image

Why It's Good For The Game

Fixes bugs

Changelog

🆑 vinylspiders
fix: fixed a race condition with mutations
/:cl:

* Fixes a race condition in mutations code (#79829)

## About The Pull Request

One of the timers has a callback to the `modify()` proc which also
doesn't check whether the mutation owner has been deleted since the
timer began, potentially resulting in a runtime.

![image](https://github.com/tgstation/tgstation/assets/13398309/1e41c48b-2620-4473-9278-702d490871cc)

## Why It's Good For The Game

Fixes bugs

## Changelog

:cl:
fix: fixed a race condition with mutations
/:cl:

* Fixes a race condition in mutations code

---------

Co-authored-by: Bloop <[email protected]>
@Iajret Iajret merged commit d49ba6f into master Nov 19, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-25116 branch November 19, 2023 17:37
AnywayFarus added a commit that referenced this pull request Nov 19, 2023
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