fix graceful shutdown to close once idle (#296)
This commit is contained in:
committed by
Carl Lerche
parent
fdfb873438
commit
c564273986
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user