node: Small simplification in wire protocol

This commit is contained in:
Alexis Sellier 2023-05-12 11:08:29 +02:00
parent 7037b52474
commit eef813fd46
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ where
log::debug!(target: "wire", "Received stream close command for id={stream} from {nid}");
if let Some(chans) = streams.unregister(&stream) {
chans.send(ChannelEvent::Close).ok();
chans.close().ok();
}
}
Ok(Some(Frame {