Compare commits

...

2 Commits

Author SHA1 Message Date
Aveline 61c036757e
Update native.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-20 14:07:08 +02:00
Aveline 156e5b78f8
Update native.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-20 14:06:55 +02:00
1 changed files with 1 additions and 4 deletions

View File

@ -283,10 +283,6 @@ func superviseNativeBinary(binaryPath string) error {
return restartNativeBinary(binaryPath)
}
if nativeCmd.Process == nil {
return restartNativeBinary(binaryPath)
}
err := nativeCmd.Wait()
if err == nil {
@ -327,6 +323,7 @@ func ExtractAndRunNativeBin() error {
err := superviseNativeBinary(binaryPath)
if err != nil {
nativeLogger.Warn().Err(err).Msg("failed to supervise native binary")
time.Sleep(1 * time.Second) // Add a short delay to prevent rapid successive calls
}
}
}