mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 19:56:00 +00:00
Updated MessageProcessingPerformanceTest to use websocket injection.
This commit is contained in:
@@ -221,11 +221,12 @@ class IncomingMessageObserver(private val context: Application) {
|
||||
}
|
||||
|
||||
fun terminateAsync() {
|
||||
Log.w(TAG, "Termination Enqueued! ${this.hashCode()}", Throwable())
|
||||
INSTANCE_COUNT.decrementAndGet()
|
||||
context.unregisterReceiver(connectionReceiver)
|
||||
|
||||
SignalExecutors.BOUNDED.execute {
|
||||
Log.w(TAG, "Beginning termination.")
|
||||
Log.w(TAG, "Beginning termination. ${this.hashCode()}")
|
||||
terminated = true
|
||||
disconnect()
|
||||
}
|
||||
@@ -371,7 +372,7 @@ class IncomingMessageObserver(private val context: Application) {
|
||||
private inner class MessageRetrievalThread : Thread("MessageRetrievalService"), Thread.UncaughtExceptionHandler {
|
||||
|
||||
init {
|
||||
Log.i(TAG, "Initializing! (" + this.hashCode() + ")")
|
||||
Log.i(TAG, "Initializing! (${this.hashCode()})")
|
||||
uncaughtExceptionHandler = this
|
||||
}
|
||||
|
||||
@@ -461,7 +462,7 @@ class IncomingMessageObserver(private val context: Application) {
|
||||
}
|
||||
Log.i(TAG, "Looping...")
|
||||
}
|
||||
Log.w(TAG, "Terminated! (" + this.hashCode() + ")")
|
||||
Log.w(TAG, "Terminated! (${this.hashCode()})")
|
||||
}
|
||||
|
||||
override fun uncaughtException(t: Thread, e: Throwable) {
|
||||
|
||||
Reference in New Issue
Block a user