Skip to content

Commit

Permalink
cmd/vinegar: defer kill, allows to kill after roblox fails or exits
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Oct 20, 2023
1 parent d7c312d commit 4e5ec77
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/vinegar/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,16 @@ func (b *Binary) Run(args ...string) error {
b.Splash.Close()
}

defer func() {
if kill && b.Config.AutoKillPrefix {
b.Prefix.Kill()
}
}()

if err := cmd.Wait(); err != nil {
return err
}

if kill && b.Config.AutoKillPrefix {
b.Prefix.Kill()
}

return nil
}

Expand Down

0 comments on commit 4e5ec77

Please sign in to comment.