提交 fabda7b5 编写于 作者: B Benjamin Pasero

setTimeout && clearTimeout

上级 aba7f12b
......@@ -25,7 +25,7 @@ export function findFreePort(startPort: number, giveUpAfter: number, timeout: nu
doFindFreePort(startPort, giveUpAfter, (port) => {
if (!done) {
done = true;
window.clearInterval(timeoutHandle);
window.clearTimeout(timeoutHandle);
return clb(port);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册