Permalink
Browse files

Make lastrun non-dependant on the callback runtime. Fixes GH-1, bbkr++

  • Loading branch information...
tadzik committed Oct 31, 2011
1 parent 0d20c72 commit 117847638c23c9bd22ae066253d5164bc64f0d18
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/MuEvent.pm
View
@@ -44,9 +44,9 @@ sub run-timers {
if clock() > $since + $e<after> {
if defined $e<interval> {
if clock() > $e<lastrun> + $e<interval> {
+ $e<lastrun> = clock();
$e<cb>.(|$e<params>);
$seen-action = True;
- $e<lastrun> = clock();
}
} else {
$e<cb>.(|$e<params>);

0 comments on commit 1178476

Please sign in to comment.