Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ad3n committed Jul 27, 2022
1 parent 07b2681 commit a80e05f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

var (
version = "v1.3.5"
version = "v1.3.7"
protocMinVersion = 31900
protocGoMinVersion = 12800
protocGRpcMinVersion = 10200
Expand Down Expand Up @@ -372,7 +372,7 @@ func main() {

pid = tool.Pid()
if pid == 0 {
time.Sleep(50 * time.Millisecond)
time.Sleep(100 * time.Millisecond)

continue
}
Expand Down
6 changes: 2 additions & 4 deletions tool/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,8 @@ func (u util) Kill() error {
return nil
}

err := exec.Command("kill", "-9", strconv.Itoa(pid)).Run()
if err == nil {
os.Remove(".pid")
}
exec.Command("kill", "-9", strconv.Itoa(pid)).Run()
os.Remove(".pid")

return nil
}
Expand Down

0 comments on commit a80e05f

Please sign in to comment.