Skip to content

Commit 6d57a98

Browse files
authored
fix(metrics): use clearInterval instead of clearTimeout in stop() (#246)
1 parent 738a444 commit 6d57a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default class Metrics {
107107

108108
public stop() {
109109
if (this.timer) {
110-
clearTimeout(this.timer);
110+
clearInterval(this.timer);
111111
delete this.timer;
112112
}
113113
}

0 commit comments

Comments
 (0)