Skip to content

Commit 2830459

Browse files
committed
Fix crash when re-enabling analytics.
1 parent 95b30bb commit 2830459

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vector/src/main/java/im/vector/app/features/analytics/impl/DefaultVectorAnalytics.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ class DefaultVectorAnalytics @Inject constructor(
164164
// When opting out, ensure that the queue is flushed first, or it will be flushed later (after user has revoked consent)
165165
posthog?.flush()
166166
posthog?.optOut(true)
167+
posthog?.shutdown()
167168
posthog = null
168169
}
169170
}

0 commit comments

Comments
 (0)