mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2026-03-02 17:09:19 +00:00
check if running
This commit is contained in:
parent
cf82b29de5
commit
c4e12fcaf7
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user