Skip to content

Commit a0f2c98

Browse files
committed
Make sure to clear existing metadata flush timer when resetting
1 parent bffd18a commit a0f2c98

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/src/v3/runMetadata/manager.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export class StandardMetadataManager implements RunMetadataManager {
3737
this.activeStreams.clear();
3838
this.store = undefined;
3939
this.runId = undefined;
40-
this.flushTimeoutId = null;
40+
41+
if (this.flushTimeoutId) {
42+
clearTimeout(this.flushTimeoutId);
43+
this.flushTimeoutId = null;
44+
}
45+
4146
this.isFlushing = false;
4247
}
4348

0 commit comments

Comments
 (0)