Skip to content

Commit aab71b1

Browse files
authored
fix(replay): Resume replay recording if paused when session is expired (#8889)
Previously was attempting to take full snapshot when replay recording was not active. Fixes #8885
1 parent 31cef09 commit aab71b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/replay/src/replay.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,11 @@ export class ReplayContainer implements ReplayContainerInterface {
646646
}
647647

648648
// Session is expired, trigger a full snapshot (which will create a new session)
649-
this._triggerFullSnapshot();
649+
if (this.isPaused()) {
650+
this.resume();
651+
} else {
652+
this._triggerFullSnapshot();
653+
}
650654

651655
return false;
652656
}

0 commit comments

Comments
 (0)