--- deliantra/server/ext/rent.ext 2007/06/26 04:56:10 1.10 +++ deliantra/server/ext/rent.ext 2007/11/14 08:09:46 1.12 @@ -47,6 +47,8 @@ sub pay_balance { my ($pl) = @_; + cf::cede_to_tick; + update_balance $pl; return unless $pl->{rent}{balance} > 0; @@ -183,13 +185,7 @@ }, ; -our $RENT_TIMER = Event->timer ( - reentrant => 0, - after => 60, - interval => 3600, - data => cf::WF_AUTOCANCEL, - cb => sub { - pay_balance $_ for cf::player::list; - }, -); +our $RENT_TIMER = cf::periodic 3600, Coro::unblock_sub { + pay_balance $_ for cf::player::list; +};