From c4e12fcaf7e04b3abe61a320368d160376681fd1 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 21 Feb 2026 02:03:58 +0000 Subject: [PATCH] check if running --- cmd/q3rcon/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/q3rcon/main.go b/cmd/q3rcon/main.go index d1585ea..77e011b 100644 --- a/cmd/q3rcon/main.go +++ b/cmd/q3rcon/main.go @@ -249,7 +249,9 @@ func runCommand(ctx *context, cmd string) error { if err != nil { return fmt.Errorf("failed to run command '%s': %w", cmd, err) } - ctx.sm.Stop() + if ctx.sm.Running() { + ctx.sm.Stop() + } fmt.Print(removeColourCodes(resp)) return nil }