mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Improve auth WebSocket lifecycle.
This commit is contained in:
committed by
Alex Hart
parent
6bbd899507
commit
323697dfc9
@@ -45,7 +45,14 @@ object FcmFetchManager {
|
||||
|
||||
private val KEEP_ALIVE_TOKEN = "FcmFetch"
|
||||
|
||||
val WEBSOCKET_DRAIN_TIMEOUT = 5.minutes.inWholeMilliseconds
|
||||
val WEBSOCKET_DRAIN_TIMEOUT: Long
|
||||
get() {
|
||||
return if (AppDependencies.signalServiceNetworkAccess.isCensored()) {
|
||||
2.minutes.inWholeMilliseconds
|
||||
} else {
|
||||
5.minutes.inWholeMilliseconds
|
||||
}
|
||||
}
|
||||
|
||||
@Volatile
|
||||
private var activeCount = 0
|
||||
|
||||
Reference in New Issue
Block a user