Skip to content

Commit

Permalink
shorten the update wait times
Browse files Browse the repository at this point in the history
  • Loading branch information
selimseker committed Nov 5, 2024
1 parent 5fe3fa8 commit f8feffa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions utils/process_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func StopProcess(pid int) error {
return fmt.Errorf("could not terminate process: %w", err)
}

// termination might take some time and it will effect the next steps during update, sleep 30 seconds just in case
time.Sleep(30 * time.Second)
// termination might take some time and it will effect the next steps during update, sleep 5 seconds just in case
time.Sleep(5 * time.Second)

return nil
}
4 changes: 2 additions & 2 deletions utils/process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func StopProcess(pid int) error {
return fmt.Errorf("could not terminate process: %w", err)
}

// in windows termination might take some time and it will affect the next steps during update, sleep 30 seconds just in case
time.Sleep(30 * time.Second)
// in windows termination might take some time and it will affect the next steps during update, sleep 5 seconds just in case
time.Sleep(5 * time.Second)

return nil
}

0 comments on commit f8feffa

Please sign in to comment.