mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-04-18 07:43:31 +00:00
check if running
This commit is contained in:
@@ -249,7 +249,9 @@ func runCommand(ctx *context, cmd string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to run command '%s': %w", cmd, err)
|
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))
|
fmt.Print(removeColourCodes(resp))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user