Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Jan 18, 2022
1 parent 0550f58 commit 33a5d56
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,13 @@ func updateProcess(diList []*downloadInfo, stopCh chan struct{}) {
if ci.installVersion {
if updateCore {
exec.Command(fullPath(diList[0].fileFullName), "/S").Run()
}
var checkInfo *cfwInfo
for {
if checkInfo = checkCfw(); checkInfo != nil {
break
for {
if check := checkCfw(); check != nil {
check.process.Kill()
break
}
}
}
checkInfo.process.Kill()
transUpdate(diList, stopCh)
} else {
transUpdate(diList, stopCh)
Expand Down

0 comments on commit 33a5d56

Please sign in to comment.