mirror of https://github.com/fafhrd91/actix-web
fix branch condition on state change
This commit is contained in:
parent
fec029b574
commit
5afef13dc6
|
@ -450,8 +450,10 @@ where
|
|||
};
|
||||
|
||||
// state is changed and continue when the state is not Empty
|
||||
if state_change && !self.state.is_empty() {
|
||||
if state_change {
|
||||
if !self.state.is_empty() {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// if read-backpressure is enabled and we consumed some data.
|
||||
// we may read more data and retry
|
||||
|
|
Loading…
Reference in New Issue