mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-20 00:35:47 +01:00
Fix notification profile polling backpressure crash.
This commit is contained in:
committed by
Alex Hart
parent
0dbe4ef8e8
commit
5175efb22b
@@ -37,7 +37,7 @@ object RxDatabaseObserver {
|
||||
@Suppress("RedundantUnitExpression")
|
||||
private fun notificationProfilesFlowable(): Flowable<Unit> {
|
||||
return Flowable.combineLatest(
|
||||
Flowable.interval(0, 30, TimeUnit.SECONDS),
|
||||
Flowable.interval(0, 30, TimeUnit.SECONDS).onBackpressureLatest(),
|
||||
databaseFlowable { AppDependencies.databaseObserver.registerNotificationProfileObserver(it) }
|
||||
) { _, _ -> Unit }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user