summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/main')
-rw-r--r--ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt
index 00cbc5a0..99a46041 100644
--- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt
+++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt
@@ -97,10 +97,11 @@ class ObservableTunnel internal constructor(
}
private set
- val statisticsAsync: CompletionStage<Statistics> = if (statistics == null || statistics!!.isStale)
- manager.getTunnelStatistics(this)
- else
- CompletableFuture.completedFuture(statistics)
+ val statisticsAsync: CompletionStage<Statistics>
+ get() = if (statistics == null || statistics!!.isStale)
+ manager.getTunnelStatistics(this)
+ else
+ CompletableFuture.completedFuture(statistics)
fun onStatisticsChanged(statistics: Statistics?): Statistics? {
this.statistics = statistics