From c74a56517be656939fe33b93c9403cfb36629fa1 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 d5d1704edf..d1ca4f48a6 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 @@ -48,7 +48,7 @@ internal class EventInsertLiveObserver @Inject constructor( observerScope.launch { lock.withLock { if (!results.isLoaded || results.isEmpty()) { - return@launch + return@withLock } val idsToDeleteAfterProcess = ArrayList() val filteredEvents = ArrayList(results.size)