node: Small simplification in wire protocol
This commit is contained in:
parent
7037b52474
commit
eef813fd46
|
|
@ -574,7 +574,7 @@ where
|
||||||
log::debug!(target: "wire", "Received stream close command for id={stream} from {nid}");
|
log::debug!(target: "wire", "Received stream close command for id={stream} from {nid}");
|
||||||
|
|
||||||
if let Some(chans) = streams.unregister(&stream) {
|
if let Some(chans) = streams.unregister(&stream) {
|
||||||
chans.send(ChannelEvent::Close).ok();
|
chans.close().ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(Some(Frame {
|
Ok(Some(Frame {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue