Skip to content
Snippets Groups Projects
Commit ec9c7732 authored by Yuri Kunde Schlesner's avatar Yuri Kunde Schlesner
Browse files

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

parent 84415916
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ void Timer::Acquire() { ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment