Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Jul 7, 2023
1 parent 543ff46 commit 115c59d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend-golang/wsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ func (a *App) WslStop() error {
if !running {
return errors.New("wsl not running")
}
err = cmd.Process.Kill()
cmd = nil
if cmd != nil {
err = cmd.Process.Kill()
cmd = nil
}
// stdin.Close()
stdin = nil
distro = nil
Expand Down

0 comments on commit 115c59d

Please sign in to comment.