Clean up per-channel state when the channel is closed. This is the final cleanup and subsumes `channel_eof` — if `channel_close` fires without a preceding `channel_eof`, all resources (`pty_master` File, `input_sender`) are dropped here.
(
&mut self,
channel: ChannelId,
_session: &mut Session,
)
| 280 | /// fires without a preceding `channel_eof`, all resources (`pty_master` File, |
| 281 | /// `input_sender`) are dropped here. |
| 282 | async fn channel_close( |
| 283 | &mut self, |
| 284 | channel: ChannelId, |
| 285 | _session: &mut Session, |
| 286 | ) -> Result<(), Self::Error> { |
| 287 | self.channels.remove(&channel); |
| 288 | Ok(()) |
| 289 | } |
| 290 | |
| 291 | async fn channel_open_direct_tcpip( |
| 292 | &mut self, |