ObservableTunnel: Don't cache configAsync
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
c547d033c3
commit
3095e19e13
@ -71,10 +71,11 @@ class ObservableTunnel internal constructor(
|
|||||||
}
|
}
|
||||||
private set
|
private set
|
||||||
|
|
||||||
val configAsync: CompletionStage<Config> = if (config == null)
|
val configAsync: CompletionStage<Config>
|
||||||
manager.getTunnelConfig(this)
|
get() = if (config == null)
|
||||||
else
|
manager.getTunnelConfig(this)
|
||||||
CompletableFuture.completedFuture(config)
|
else
|
||||||
|
CompletableFuture.completedFuture(config)
|
||||||
|
|
||||||
fun setConfigAsync(config: Config): CompletionStage<Config> = if (config != this.config)
|
fun setConfigAsync(config: Config): CompletionStage<Config> = if (config != this.config)
|
||||||
manager.setTunnelConfig(this, config)
|
manager.setTunnelConfig(this, config)
|
||||||
|
Loading…
Reference in New Issue
Block a user