clearInterval

This commit is contained in:
c9s 2021-02-04 20:22:27 +08:00
parent 237c621182
commit 715c717dfd

View File

@ -61,8 +61,10 @@ export default function SaveConfigAndRestart({onBack, onRestarted}) {
setResponse(resp); setResponse(resp);
setupRestart((resp) => { setupRestart((resp) => {
setInterval(function() { let t
t = setInterval(function() {
ping(() => { ping(() => {
clearInterval(t)
push("/"); push("/");
}) })
}, 1000); }, 1000);