From f8feffac235aee94ff928d6877e9722a6a553993 Mon Sep 17 00:00:00 2001 From: selimseker Date: Wed, 6 Nov 2024 01:53:49 +0300 Subject: [PATCH] shorten the update wait times --- utils/process_unix.go | 4 ++-- utils/process_windows.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/process_unix.go b/utils/process_unix.go index 513cb58..79283a6 100644 --- a/utils/process_unix.go +++ b/utils/process_unix.go @@ -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 } diff --git a/utils/process_windows.go b/utils/process_windows.go index 078dc80..5da6308 100644 --- a/utils/process_windows.go +++ b/utils/process_windows.go @@ -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 }