From 5ffc3b9b736aceb17e0a3f4595d5a98f8c604fff Mon Sep 17 00:00:00 2001 From: KingKDot Date: Thu, 19 Mar 2026 02:01:21 -0500 Subject: [PATCH] save --- .gitignore | 3 ++- Overlord-Client/cmd/agent/handlers/command.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index be4c43b..5bba50f 100644 --- a/.gitignore +++ b/.gitignore @@ -484,4 +484,5 @@ FodyWeavers.xsd *.msm *.msp *.exp -*.lib \ No newline at end of file +*.lib +save.txt diff --git a/Overlord-Client/cmd/agent/handlers/command.go b/Overlord-Client/cmd/agent/handlers/command.go index 2d9bdc9..dcba732 100644 --- a/Overlord-Client/cmd/agent/handlers/command.go +++ b/Overlord-Client/cmd/agent/handlers/command.go @@ -1770,7 +1770,8 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in res := wire.CommandResult{Type: "command_result", CommandID: cmdID, OK: true} _ = wire.WriteMsg(ctx, env.Conn, res) resetForReconnect(env) - return ErrReconnect + os.Exit(0) + return nil case "reconnect": resetForReconnect(env) res := wire.CommandResult{Type: "command_result", CommandID: cmdID, OK: true}