From 24bfcef406c9461aad280d266c7abb69a57db4e7 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 21 Jul 2024 18:56:19 +0200 Subject: [PATCH] chore: clear exit code on cosnole when allready exsits --- internal/core/services/console_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/core/services/console_manager.go b/internal/core/services/console_manager.go index 244d348..68047e4 100644 --- a/internal/core/services/console_manager.go +++ b/internal/core/services/console_manager.go @@ -45,6 +45,8 @@ func (cm *ConsoleManager) AddConsoleWithIoReader(id string, consoleType domain.C } else { console = cm.consoles[id] newChannel = cm.consoles[id].Channel + //TODO: whe need a better way to manager mutltiple consoles for one command. We probabl consoles map[string][]*domain.Console instead of consoles map[string]*domain.Console + cm.consoles[id].Exit = nil } //broadcast reader into channel (maybe increase chunk size?)