Skip to content

Commit a11659a

Browse files
authored
fix(replay): Envelope send should be awaited in try/catch (#6625)
1 parent 86d3e06 commit a11659a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/replay/src/replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ export class ReplayContainer implements ReplayContainerInterface {
992992
const envelope = createReplayEnvelope(replayEvent, payloadWithSequence, dsn, client.getOptions().tunnel);
993993

994994
try {
995-
return transport.send(envelope);
995+
return await transport.send(envelope);
996996
} catch {
997997
throw new Error(UNABLE_TO_SEND_REPLAY);
998998
}

0 commit comments

Comments
 (0)