diff options
Diffstat (limited to 'ui/src')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt | 9 |
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 99a46041..d5645e61 100644 --- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt +++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt @@ -71,10 +71,11 @@ class ObservableTunnel internal constructor( } private set - val configAsync: CompletionStage<Config> = if (config == null) - manager.getTunnelConfig(this) - else - CompletableFuture.completedFuture(config) + val configAsync: CompletionStage<Config> + get() = if (config == null) + manager.getTunnelConfig(this) + else + CompletableFuture.completedFuture(config) fun setConfigAsync(config: Config): CompletionStage<Config> = if (config != this.config) manager.setTunnelConfig(this, config) |