In this PR, we attempt to fix the DB crash issue occurring for a few % of users. This happens while the SDK is being initialised. We have removed the queue-related logic to prevent any hidden thread-related issues. Additionally, since we are now calling saveEvent() from the executor in the repository class, we no longer need a separate executor for the DBInsertionHandlerThread instance creation.
Fixes # (issue)
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[ ] Version upgraded (project, README, gradle, podspec etc)
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added unit tests for the code
[ ] I have made corresponding changes to the documentation
Description
In this PR, we attempt to fix the DB crash issue occurring for a few % of users. This happens while the SDK is being initialised. We have removed the queue-related logic to prevent any hidden thread-related issues. Additionally, since we are now calling
saveEvent()
from the executor in the repository class, we no longer need a separate executor for theDBInsertionHandlerThread
instance creation.Fixes # (issue)
Type of change
Checklist: