Skip to content

Commit be6799e

Browse files
committed
flush immediate in session mode as well
1 parent 890ad78 commit be6799e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/replay/src/replay.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,8 @@ export class ReplayContainer implements ReplayContainerInterface {
319319
* Otherwise, queue up a flush.
320320
*/
321321
public async sendBufferedReplayOrFlush({ continueRecording = true }: SendBufferedReplayOptions = {}): Promise<void> {
322-
// if in session mode, call debounced flush
323322
if (this.recordingMode === 'session') {
324-
return this._debouncedFlush() as Promise<void>;
323+
return this.flushImmediate();
325324
}
326325

327326
// Allow flush to complete before resuming as a session recording, otherwise

0 commit comments

Comments
 (0)