mirror of https://github.com/jetkvm/kvm.git
Compare commits
2 Commits
dd7cbd1a2f
...
61c036757e
Author | SHA1 | Date |
---|---|---|
|
61c036757e | |
|
156e5b78f8 |
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue