mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-08 09:02:18 +00:00
Send Close when shutting down gracefully, as per spec (#631)
This commit is contained in:
parent
373b05347a
commit
2004b196e2
@ -533,7 +533,7 @@ where C: AsyncRead + AsyncWrite
|
||||
}
|
||||
|
||||
fn shutdown_substream(&self, sub: &mut Self::Substream, _: Shutdown) -> Poll<(), IoError> {
|
||||
let elem = codec::Elem::Reset {
|
||||
let elem = codec::Elem::Close {
|
||||
substream_id: sub.num,
|
||||
endpoint: sub.endpoint,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user