send proper max stream ID in graceful goaway (#254)

This commit is contained in:
Sean McArthur
2018-04-06 15:51:34 -07:00
committed by GitHub
parent 60749db680
commit dca336f8b2
4 changed files with 7 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ impl GoAway {
pub fn should_close_on_idle(&self) -> bool {
!self.close_now && self.going_away
.as_ref()
.map(|g| g.last_processed_id != StreamId::MAX_CLIENT)
.map(|g| g.last_processed_id != StreamId::MAX)
.unwrap_or(false)
}