Skip to content

Commit

Permalink
use clearInterval instead of clearTimer on a timer (#10597)
Browse files Browse the repository at this point in the history
Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
TheRusskiy and ijjk committed Feb 19, 2020
1 parent 103e822 commit b3fad60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/client/dev/error-overlay/eventsource.js
Expand Up @@ -46,7 +46,7 @@ function EventSourceWrapper(options) {

return {
close: () => {
clearTimeout(timer)
clearInterval(timer)
source.close()
},
addMessageListener: function(fn) {
Expand Down

0 comments on commit b3fad60

Please sign in to comment.