Skip to content

Commit c429b10

Browse files
Luca Forstnerbillyvg
authored andcommitted
fix(nextjs): Fix memory leak (#12335)
1 parent 0aecb5f commit c429b10

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/nextjs/src/common/utils/responseEnd.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ export function finishSpan(span: Span, res: ServerResponse): void {
5050
export async function flushSafelyWithTimeout(): Promise<void> {
5151
try {
5252
DEBUG_BUILD && logger.log('Flushing events...');
53-
// We give things that are currently stuck in event processors a tiny bit more time to finish before flushing. 50ms was chosen very unscientifically.
54-
await new Promise(resolve => setTimeout(resolve, 50));
5553
await flush(2000);
5654
DEBUG_BUILD && logger.log('Done flushing events');
5755
} catch (e) {

0 commit comments

Comments
 (0)