Fix firing of absolute clocks.

This commit is contained in:
Meisaka Yukara 2016-01-22 21:17:05 +01:00 committed by Jonas 'Sortie' Termansen
parent dbe6b32b1f
commit 3d48c7f658
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ void Clock::TriggerAbsolute() // Lock acquired.
{
while ( Timer* timer = absolute_timer )
{
if ( timespec_lt(timer->value.it_value, current_time) )
if ( timespec_lt(current_time, timer->value.it_value) )
break;
if ( (absolute_timer = absolute_timer->next_timer) )
absolute_timer->prev_timer = NULL;