Skip to content

Commit 544cd62

Browse files
committed
clear the timeout after the promise completes
1 parent e9c3c7a commit 544cd62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/telemetry/telemetry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ export class Telemetry {
106106
});
107107
resolve();
108108
}, flushMaxWaitTime);
109+
flushTimeout.unref();
109110
}),
110111
this.emit([]),
111112
]);
112113

113-
flushTimeout?.unref();
114+
clearTimeout(flushTimeout);
114115
}
115116

116117
/**

0 commit comments

Comments
 (0)