mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-26 20:52:37 +01:00
Use 0 second timeout on SelectHandler's select
We do not need to wait for any timeout period in SelectHandler's select since IRC.pm's select has a 1 second (by default) timeout. Removing this unnecessary delay will increase the overall responsiveness of the bot.
This commit is contained in:
parent
1ffe857ba5
commit
19788eec47
@ -40,7 +40,7 @@ sub remove_reader {
|
||||
|
||||
sub do_select {
|
||||
my ($self) = @_;
|
||||
my @ready = $self->{select}->can_read(.5);
|
||||
my @ready = $self->{select}->can_read(0);
|
||||
foreach my $fh (@ready) {
|
||||
my $ret = sysread($fh, my $buf, 8192);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user