Skip to content

Commit

Permalink
Shorten lifespan of buffered store.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Mar 24, 2023
1 parent 5914a4d commit 87918da
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -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 {
Expand Down

0 comments on commit 87918da

Please sign in to comment.