mirror of https://github.com/jetkvm/kvm.git
Extend retries to 2000
(which is 20000 seconds after backing off)
This commit is contained in:
parent
c61ba677e2
commit
fe91742c2b
4
ota.go
4
ota.go
|
|
@ -261,7 +261,9 @@ func verifyFile(path string, expectedHash string, verifyProgress *float32, scope
|
|||
}
|
||||
|
||||
// close the file so we can rename below
|
||||
fileToHash.Close()
|
||||
if err := fileToHash.Close(); err != nil {
|
||||
return fmt.Errorf("error closing file: %w", err)
|
||||
}
|
||||
|
||||
hashSum := hex.EncodeToString(hash.Sum(nil))
|
||||
scopedLogger.Info().Str("path", path).Str("hash", hashSum).Msg("SHA256 hash of")
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ export default function KvmIdRoute() {
|
|||
const ignoreOffer = useRef(false);
|
||||
const isSettingRemoteAnswerPending = useRef(false);
|
||||
const makingOffer = useRef(false);
|
||||
const reconnectAttemptsRef = useRef(20);
|
||||
const reconnectAttemptsRef = useRef(2000);
|
||||
|
||||
const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue