Skip to content

Commit 21c4b4b

Browse files
committed
fix: Cleanup on LatencyState not being performed when closed/destroyed via hot-reload
1 parent 0b976b0 commit 21c4b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/ui/debug/latency/LatencyState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ class LatencyState extends MusicBeatSubState
179179
strumLine.releaseKey(event.noteDirection);
180180
}
181181

182-
override public function close():Void
182+
override public function destroy():Void
183183
{
184184
cleanup();
185-
super.close();
185+
super.destroy();
186186
}
187187

188188
function cleanup():Void

0 commit comments

Comments
 (0)