fix graceful shutdown to close once idle (#296)

This commit is contained in:
Sean McArthur
2018-07-30 21:42:00 -07:00
committed by Carl Lerche
parent fdfb873438
commit c564273986
3 changed files with 33 additions and 10 deletions

View File

@@ -127,6 +127,8 @@ impl GoAway {
.expect("invalid GOAWAY frame");
return Ok(Async::Ready(Some(reason)));
} else if self.should_close_now() {
return Ok(Async::Ready(self.going_away_reason()));
}
Ok(Async::Ready(None))