mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Shorten lifespan of buffered store.
This commit is contained in:
@@ -398,14 +398,13 @@ class IncomingMessageObserver(private val context: Application) {
|
||||
|
||||
signalWebSocket.connect()
|
||||
try {
|
||||
val bufferedStore = BufferedProtocolStore.create()
|
||||
|
||||
while (isConnectionNecessary()) {
|
||||
try {
|
||||
Log.d(TAG, "Reading message...")
|
||||
|
||||
val hasMore = signalWebSocket.readMessageBatch(WEBSOCKET_READ_TIMEOUT, 30) { batch ->
|
||||
Log.i(TAG, "Retrieved ${batch.size} envelopes!")
|
||||
val bufferedStore = BufferedProtocolStore.create()
|
||||
|
||||
val startTime = System.currentTimeMillis()
|
||||
ReentrantSessionLock.INSTANCE.acquire().use {
|
||||
|
||||
Reference in New Issue
Block a user