diff --git a/neqo-bin/src/client/http09.rs b/neqo-bin/src/client/http09.rs index e0b254f67b..568766ea12 100644 --- a/neqo-bin/src/client/http09.rs +++ b/neqo-bin/src/client/http09.rs @@ -153,7 +153,9 @@ impl super::Client for Connection { where S: AsRef + std::fmt::Display, { - self.close(now, app_error, msg); + if !self.state().closed() { + self.close(now, app_error, msg); + } } fn is_closed(&self) -> Option {