Subject: | Timers aren't sorted |
The timers aren't sorted. In one place I set up a couple of rows of text to be sent at a later time. But they should be sent in order, even if each row has it's own timer. It's easily fixed.
--- IRCService.pm~ 2003-07-25 12:42:04.000000000 +0200
+++ IRCService.pm 2003-09-21 04:38:03.000000000 +0200
@@ -448,7 +448,7 @@
select(undef,undef,undef, 0.2);
&do_one_loop;
&send_event(EVENT_DO_ONE_LOOP, '');
- foreach (keys %timers) {
+ foreach (sort keys %timers) {
if (time >= $timers{$_}{timeout}) {
&{ $timers{$_}{sub} };
del_timer($_);