File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1085,9 +1085,6 @@ export class ReplayContainer implements ReplayContainerInterface {
1085
1085
// This uses the data from the eventBuffer, so we need to call this before `finish()
1086
1086
this . _updateInitialTimestampFromEventBuffer ( ) ;
1087
1087
1088
- // Note this empties the event buffer regardless of outcome of sending replay
1089
- const recordingData = await this . eventBuffer . finish ( ) ;
1090
-
1091
1088
const timestamp = Date . now ( ) ;
1092
1089
1093
1090
// Check total duration again, to avoid sending outdated stuff
@@ -1102,6 +1099,9 @@ export class ReplayContainer implements ReplayContainerInterface {
1102
1099
const segmentId = this . session . segmentId ++ ;
1103
1100
this . _maybeSaveSession ( ) ;
1104
1101
1102
+ // Note this empties the event buffer regardless of outcome of sending replay
1103
+ const recordingData = await this . eventBuffer . finish ( ) ;
1104
+
1105
1105
await sendReplay ( {
1106
1106
replayId,
1107
1107
recordingData,
You can’t perform that action at this time.
0 commit comments