diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-26 11:34:12 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-26 11:34:12 +0000 |
commit | 840284b24d1a03c14592dd907894b136a37c495c (patch) | |
tree | dc8b781ea18d2d5d082ed02b1ddef6421ac7326b /beos/schedule.cpp | |
parent | 7915708b583699f16412d5eeab6a42602319e720 (diff) | |
parent | 2836c1775ab1f3bd4257f7ab43f21366b60a2206 (diff) | |
download | netsurf-840284b24d1a03c14592dd907894b136a37c495c.tar.gz netsurf-840284b24d1a03c14592dd907894b136a37c495c.tar.bz2 |
Merge remote-tracking branch 'origin/mmu_man/beos-fixes'
Diffstat (limited to 'beos/schedule.cpp')
-rw-r--r-- | beos/schedule.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/beos/schedule.cpp b/beos/schedule.cpp index 3f822352a..db0992e63 100644 --- a/beos/schedule.cpp +++ b/beos/schedule.cpp @@ -95,8 +95,9 @@ schedule(int t, void (*callback)(void *p), void *p) cb->context = p; cb->callback_killed = cb->callback_fired = false; cb->timeout = timeout; - if (earliest_callback_timeout > timeout) + if (earliest_callback_timeout > timeout) { earliest_callback_timeout = timeout; + } callbacks->AddItem(cb); } @@ -104,11 +105,12 @@ bool schedule_run(void) { LOG(("schedule_run()")); + + earliest_callback_timeout = B_INFINITE_TIMEOUT; if (callbacks == NULL) return false; /* Nothing to do */ bigtime_t now = system_time(); - earliest_callback_timeout = B_INFINITE_TIMEOUT; int32 i; LOG(("Checking %ld callbacks to for deadline.", this_run->CountItems())); |