diff options
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | 3 |
1 files changed, 3 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 f22e1e1..601ffbb 100644 --- a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt +++ b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | |||
@@ -44,6 +44,9 @@ class TincVpnService : VpnService() { | |||
44 | if (netName.isBlank()) | 44 | if (netName.isBlank()) |
45 | return reportError(resources.getString(R.string.message_no_network_name_provided), docTopic = "intent-api") | 45 | return reportError(resources.getString(R.string.message_no_network_name_provided), docTopic = "intent-api") |
46 | 46 | ||
47 | if (!AppPaths.storageAvailable()) | ||
48 | return reportError(resources.getString(R.string.message_storage_unavailable)) | ||
49 | |||
47 | if (!AppPaths.confDir(netName).exists()) | 50 | if (!AppPaths.confDir(netName).exists()) |
48 | return reportError(resources.getString(R.string.message_no_configuration_for_network_format, netName), docTopic = "configuration") | 51 | return reportError(resources.getString(R.string.message_no_configuration_for_network_format, netName), docTopic = "configuration") |
49 | 52 | ||