File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,9 @@ export class Telemetry {
184
184
185
185
if ( this . flushing ) {
186
186
this . eventCache . appendEvents ( events ?? [ ] ) ;
187
- process . nextTick ( ( ) => { // try again if in the middle of a flush
188
- this . flush ( ) ;
187
+ process . nextTick ( async ( ) => {
188
+ // try again if in the middle of a flush
189
+ await this . flush ( ) ;
189
190
} ) ;
190
191
return ;
191
192
}
@@ -220,8 +221,9 @@ export class Telemetry {
220
221
`Error sending event to client: ${ error instanceof Error ? error . message : String ( error ) } `
221
222
) ;
222
223
this . eventCache . appendEvents ( events ?? [ ] ) ;
223
- process . nextTick ( ( ) => { // try again
224
- this . flush ( ) ;
224
+ process . nextTick ( async ( ) => {
225
+ // try again
226
+ await this . flush ( ) ;
225
227
} ) ;
226
228
}
227
229
You can’t perform that action at this time.
0 commit comments