Compare commits

..

No commits in common. "61c036757ebc1de541c430bd6266dcb29d6501f9" and "dd7cbd1a2fd1c7094962bca023d48ed7601bcb3f" have entirely different histories.

1 changed files with 4 additions and 1 deletions

View File

@ -283,6 +283,10 @@ func superviseNativeBinary(binaryPath string) error {
return restartNativeBinary(binaryPath)
}
if nativeCmd.Process == nil {
return restartNativeBinary(binaryPath)
}
err := nativeCmd.Wait()
if err == nil {
@ -323,7 +327,6 @@ 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
}
}
}