diff --git a/quinn-proto/src/connection/streams/mod.rs b/quinn-proto/src/connection/streams/mod.rs index d2edf80e9..e58613ed5 100644 --- a/quinn-proto/src/connection/streams/mod.rs +++ b/quinn-proto/src/connection/streams/mod.rs @@ -240,7 +240,7 @@ impl<'a> SendStream<'a> { } /// Check if this stream was stopped, get the reason if it was - pub fn stopped(&mut self) -> Result, ClosedStream> { + pub fn stopped(&self) -> Result, ClosedStream> { match self.state.send.get(&self.id).as_ref() { Some(Some(s)) => Ok(s.stop_reason), Some(None) => Ok(None),