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);
setupRestart((resp) => {
setInterval(function() {
let t
t = setInterval(function() {
ping(() => {
clearInterval(t)
push("/");
})
}, 1000);