Skip to content

Commit

Permalink
fix: revert "fix: wait until build (including possible legacy data mi…
Browse files Browse the repository at this point in the history
…gration) is finished (#138)" (#140)

This reverts commit c3075a9.
  • Loading branch information
falconandy authored Aug 9, 2023
1 parent 39a50d5 commit c1acc71
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions android/src/main/java/com/amplitude/android/Timeline.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ class Timeline : Timeline() {

internal fun start() {
amplitude.amplitudeScope.launch(amplitude.storageIODispatcher) {
// Wait until build (including possible legacy data migration) is finished.
amplitude.isBuilt.await()

_sessionId.set(amplitude.storage.read(Storage.Constants.PREVIOUS_SESSION_ID)?.toLongOrNull() ?: -1)
lastEventId = amplitude.storage.read(Storage.Constants.LAST_EVENT_ID)?.toLongOrNull() ?: 0
lastEventTime = amplitude.storage.read(Storage.Constants.LAST_EVENT_TIME)?.toLongOrNull() ?: -1
Expand Down

0 comments on commit c1acc71

Please sign in to comment.