aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt
index 0937006..dfdbb32 100644
--- a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt
+++ b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt
@@ -96,6 +96,8 @@ class TincVpnService : VpnService() {
96 setState(netName, interfaceCfg, deviceFd, daemon) 96 setState(netName, interfaceCfg, deviceFd, daemon)
97 waitForDaemonStartup().thenRun { 97 waitForDaemonStartup().thenRun {
98 deviceFd.close() 98 deviceFd.close()
99 privateKeys.first?.close()
100 privateKeys.second?.close()
99 Log.i(TAG, "tinc daemon started.") 101 Log.i(TAG, "tinc daemon started.")
100 broadcastEvent(Actions.EVENT_CONNECTED) 102 broadcastEvent(Actions.EVENT_CONNECTED)
101 } 103 }