From 2a9ac539e438bf2e0ee7f48cb3e61af0f6399507 Mon Sep 17 00:00:00 2001 From: ganfra Date: Mon, 13 Jun 2022 11:11:26 +0200 Subject: [PATCH] Change after PR review --- .../android/sdk/internal/database/EventInsertLiveObserver.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/EventInsertLiveObserver.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/EventInsertLiveObserver.kt index 38d80c3436..6ccd4ae03e 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/EventInsertLiveObserver.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/EventInsertLiveObserver.kt @@ -46,7 +46,7 @@ internal class EventInsertLiveObserver @Inject constructor(@SessionDatabase real observerScope.launch { lock.withLock { if (!results.isLoaded || results.isEmpty()) { - return@launch + return@withLock } val idsToDeleteAfterProcess = ArrayList() val filteredEvents = ArrayList(results.size)