aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/pacien/tincapp/commands/Tinc.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/commands/Tinc.kt')
-rw-r--r--app/src/main/java/org/pacien/tincapp/commands/Tinc.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/commands/Tinc.kt b/app/src/main/java/org/pacien/tincapp/commands/Tinc.kt
index 4d00805..dc23935 100644
--- a/app/src/main/java/org/pacien/tincapp/commands/Tinc.kt
+++ b/app/src/main/java/org/pacien/tincapp/commands/Tinc.kt
@@ -34,6 +34,10 @@ object Tinc {
34 Executor.call(newCommand(netName).withArguments("stop")) 34 Executor.call(newCommand(netName).withArguments("stop"))
35 .thenApply { } 35 .thenApply { }
36 36
37 fun retry(netName: String): CompletableFuture<Unit> =
38 Executor.call(newCommand(netName).withArguments("retry"))
39 .thenApply { }
40
37 fun pid(netName: String): CompletableFuture<Int> = 41 fun pid(netName: String): CompletableFuture<Int> =
38 Executor.call(newCommand(netName).withArguments("pid")) 42 Executor.call(newCommand(netName).withArguments("pid"))
39 .thenApply { Integer.parseInt(it.first()) } 43 .thenApply { Integer.parseInt(it.first()) }