fix initial on_flight flag

This commit is contained in:
fakeshadow 2021-11-04 21:50:45 +08:00
parent 2822839391
commit 0d23e496f7
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ where
) -> Self { ) -> Self {
let ping_pong = config.keep_alive_timer().map(|timer| H2PingPong { let ping_pong = config.keep_alive_timer().map(|timer| H2PingPong {
timer: Box::pin(timer), timer: Box::pin(timer),
on_flight: true, on_flight: false,
ping_pong: connection.ping_pong().unwrap(), ping_pong: connection.ping_pong().unwrap(),
}); });