1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

fix bug where upgrade future is not reset properly (#1880)

This commit is contained in:
fakeshadow
2021-01-07 08:57:34 +08:00
committed by GitHub
parent 85753130d9
commit 6d710629af
3 changed files with 30 additions and 55 deletions

View File

@ -338,7 +338,7 @@ where
.map_err(|e| log::error!("Init http service error: {:?}", e)))?;
this = self.as_mut().project();
*this.upgrade = Some(upgrade);
this.fut_ex.set(None);
this.fut_upg.set(None);
}
let result = ready!(this