From e238ae17fe11424a108909f520f0b51430506615 Mon Sep 17 00:00:00 2001 From: Jonatan Rhodin Date: Tue, 21 Nov 2023 14:33:32 +0100 Subject: [PATCH] Fix account history events being lost because of buffer overflow --- .../kotlin/net/mullvad/mullvadvpn/lib/ipc/DispatchingHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/lib/ipc/src/main/kotlin/net/mullvad/mullvadvpn/lib/ipc/DispatchingHandler.kt b/android/lib/ipc/src/main/kotlin/net/mullvad/mullvadvpn/lib/ipc/DispatchingHandler.kt index dd73f3c156c8..e8c75babe798 100644 --- a/android/lib/ipc/src/main/kotlin/net/mullvad/mullvadvpn/lib/ipc/DispatchingHandler.kt +++ b/android/lib/ipc/src/main/kotlin/net/mullvad/mullvadvpn/lib/ipc/DispatchingHandler.kt @@ -15,7 +15,7 @@ class DispatchingHandler(looper: Looper, private val extractor: (Messag private val handlers = HashMap, (T) -> Unit>() private val lock = ReentrantReadWriteLock() - private val _parsedMessages = MutableSharedFlow(extraBufferCapacity = 1) + private val _parsedMessages = MutableSharedFlow(extraBufferCapacity = 10) val parsedMessages = _parsedMessages.asSharedFlow() @Deprecated("Use parsedMessages instead.")