mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-28 21:57:17 +00:00
Pass network change events down to libsignal-net
This commit is contained in:
committed by
Greyson Parrelli
parent
139b62e469
commit
1b2a62ae09
@@ -88,6 +88,7 @@ class IncomingMessageObserver(private val context: Application, private val sign
|
||||
private val connectionNecessarySemaphore = Semaphore(0)
|
||||
private val networkConnectionListener = NetworkConnectionListener(context) { isNetworkUnavailable ->
|
||||
lock.withLock {
|
||||
AppDependencies.libsignalNetwork.onNetworkChange()
|
||||
if (isNetworkUnavailable()) {
|
||||
Log.w(TAG, "Lost network connection. Shutting down our websocket connections and resetting the drained state.")
|
||||
decryptionDrained = false
|
||||
|
||||
Reference in New Issue
Block a user