cancel old timer (#4139)

This commit is contained in:
liang feng
2019-02-12 14:49:02 +08:00
committed by John-David Dalton
parent bda6f2795f
commit 15b156512f

View File

@@ -10407,6 +10407,7 @@
}
if (maxing) {
// Handle invocations in a tight loop.
clearTimeout(timerId);
timerId = setTimeout(timerExpired, wait);
return invokeFunc(lastCallTime);
}