Skip to content

Commit ed2340d

Browse files
committed
fix possible miss of sessionId
1 parent db58916 commit ed2340d

File tree

1 file changed

+1
-1
lines changed
  • sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/exporter

1 file changed

+1
-1
lines changed

sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/exporter/SessionReplayExporter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class SessionReplayExporter(
185185

186186
suspend fun identifyEventAndUpdate(newIdentifyEvent: IdentifyItemPayload) {
187187
exportMutex.withLock {
188-
val sessionId = lastSeenState.sessionId
188+
val sessionId = newIdentifyEvent.sessionId
189189
if (sessionId != null) {
190190
replayApiService.identifyReplaySession(sessionId, newIdentifyEvent)
191191
identifyItemPayload = newIdentifyEvent

0 commit comments

Comments
 (0)