comparison skillbot.pl @ 16:e238f28f774a

No need to save timer
author Dominic Cleal <dominic@computerkb.co.uk>
date Sat, 06 Dec 2008 16:46:52 +0000
parents 2ab5ccc01036
children bef72aa85f2b
comparison
equal deleted inserted replaced
15:2ab5ccc01036 16:e238f28f774a
436 my $prefinish = $finish - 60; 436 my $prefinish = $finish - 60;
437 437
438 # Add a timer shortly before the end to ensure the user's still training 438 # Add a timer shortly before the end to ensure the user's still training
439 if ($prefinish > 0) 439 if ($prefinish > 0)
440 { 440 {
441 $f->{timer} = add_one_shot_timer($prefinish, sub { 441 add_one_shot_timer($prefinish, sub {
442 check_friend($self, $f); 442 check_friend($self, $f);
443 }); 443 });
444 } 444 }
445 445
446 $f->{timer} = add_one_shot_timer($skill->finish_time - time(), sub { 446 $f->{timer} = add_one_shot_timer($skill->finish_time - time(), sub {