mirror of
https://github.com/moghtech/komodo.git
synced 2026-10-29 16:06:57 +00:00
fix Core -> Periphery reconnection
This commit is contained in:
@@ -142,13 +142,10 @@ impl Resolve<super::Args> for ConnectContainerExec {
|
||||
impl Resolve<super::Args> for DisconnectTerminal {
|
||||
#[instrument(name = "DisconnectTerminal", level = "debug")]
|
||||
async fn resolve(self, _: &super::Args) -> serror::Result<NoData> {
|
||||
// TODO: Remove logs
|
||||
info!("Disconnect called for {}", self.id);
|
||||
if let Some((_, cancel)) =
|
||||
terminal_channels().remove(&self.id).await
|
||||
{
|
||||
cancel.cancel();
|
||||
info!("Cancel called for {}", self.id);
|
||||
}
|
||||
Ok(NoData {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user