Skip to content

[BUGFIX] Fix LatencyState cleanup not being performed in hot-reload#5085

Merged
AbnormalPoof merged 1 commit intoFunkinCrew:developfrom
NotHyper-474:bugfix/hot-reload-latencystate-crash-fix
Jun 17, 2025
Merged

[BUGFIX] Fix LatencyState cleanup not being performed in hot-reload#5085
AbnormalPoof merged 1 commit intoFunkinCrew:developfrom
NotHyper-474:bugfix/hot-reload-latencystate-crash-fix

Conversation

@NotHyper-474
Copy link
Contributor

@NotHyper-474 NotHyper-474 commented May 14, 2025

Linked Issues

Fixes the NOR in #4252 (please make two different things two separate issues ok thx)

Description

The close function was never being called by anything so in some cases cleanup would never run and cause an error.
But destroy on the other hand can be relied on, so this fixes this by simply replacing close with it.

(Not sure why someone would run hot-reload in the input offsets state though... oh wait, this also happens if you press F4 since there's also a state switch, so valid issue I guess)

Screenshots/Videos

N/A guhh i can't be bothered to make a video for this fix

@github-actions github-actions bot added status: pending triage Awaiting review. pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. and removed status: pending triage Awaiting review. labels May 14, 2025
@NotHyper-474 NotHyper-474 force-pushed the bugfix/hot-reload-latencystate-crash-fix branch from 21c4b4b to d525a5d Compare May 14, 2025 00:59
@AbnormalPoof AbnormalPoof added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression status: pending triage Awaiting review. labels May 14, 2025
@EliteMasterEric EliteMasterEric added the size: tiny A tiny pull request with 4 or fewer changes. label May 14, 2025
@AbnormalPoof AbnormalPoof removed the size: small A small pull request with 10 or fewer changes. label May 14, 2025
@EliteMasterEric EliteMasterEric added size: small A small pull request with 10 or fewer changes. size: tiny A tiny pull request with 4 or fewer changes. and removed size: small A small pull request with 10 or fewer changes. size: tiny A tiny pull request with 4 or fewer changes. labels May 14, 2025
@NotHyper-474 NotHyper-474 force-pushed the bugfix/hot-reload-latencystate-crash-fix branch from d525a5d to a200d65 Compare May 14, 2025 21:59
@AbnormalPoof AbnormalPoof added status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: pending triage Awaiting review. labels May 28, 2025
@AbnormalPoof AbnormalPoof added this to the 0.7.0 milestone May 28, 2025
@AbnormalPoof AbnormalPoof merged commit cb9e335 into FunkinCrew:develop Jun 17, 2025
4 checks passed
@NotHyper-474 NotHyper-474 deleted the bugfix/hot-reload-latencystate-crash-fix branch October 14, 2025 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: tiny A tiny pull request with 4 or fewer changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression

Development

Successfully merging this pull request may close these issues.

4 participants