mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
SelectHandler: fix reader subref when closing handle
This commit is contained in:
parent
06d986e11e
commit
d395fd41af
@ -56,8 +56,8 @@ sub on_select_read {
|
||||
if ($ret == 0) {
|
||||
# is there anything in reader's buffer?
|
||||
if (length $self->{buffers}->{$handle}) {
|
||||
# send buffer to reader subref
|
||||
$self->{readers}->{$handle}->($self->{buffers}->{$handle});
|
||||
# send buffer to reader's consumer subref
|
||||
$subref->($self->{buffers}->{$handle});
|
||||
}
|
||||
|
||||
# remove reader
|
||||
|
Loading…
Reference in New Issue
Block a user