Closed michaelfig closed 1 year ago
Hold a copy of $self in $cmd_cv until it is sent.
Without this patch, if an AnyEvent::Redis handle goes out of the caller's scope while commands are still pending, the old code doesn't keep $self alive, resulting in undefined $self errors for $self->_expect, or $self->all_cv.
Clearly no interest in this PR. I guess this package is dead.
Hold a copy of $self in $cmd_cv until it is sent.
Without this patch, if an AnyEvent::Redis handle goes out of the caller's scope while commands are still pending, the old code doesn't keep $self alive, resulting in undefined $self errors for $self->_expect, or $self->all_cv.