2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Kernel: Remove previous scheduled event when a Timer is re-Set

This commit is contained in:
Yuri Kunde Schlesner 2015-01-31 10:40:16 -02:00
parent 8441591659
commit ec9c773251

View file

@ -38,6 +38,9 @@ void Timer::Acquire() {
} }
void Timer::Set(s64 initial, s64 interval) { void Timer::Set(s64 initial, s64 interval) {
// Ensure we get rid of any previous scheduled event
Cancel();
initial_delay = initial; initial_delay = initial;
interval_delay = interval; interval_delay = interval;