Skip Menu |

This queue is for tickets about the Net-IRCService CPAN distribution.

Report information
The Basics
Id: 3828
Status: resolved
Priority: 0/
Queue: Net-IRCService

People
Owner: Nobody in particular
Requestors: jonas [...] paranormal.se
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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($_);