Commit 5e751564 authored by Mygod's avatar Mygod

Suppress EACCES for ProtectWorker

parent 3a7ab221
...@@ -81,7 +81,7 @@ class VpnService : BaseVpnService(), BaseService.Interface { ...@@ -81,7 +81,7 @@ class VpnService : BaseVpnService(), BaseService.Interface {
} catch (e: IOException) { } catch (e: IOException) {
when ((e.cause as? ErrnoException)?.errno) { when ((e.cause as? ErrnoException)?.errno) {
// also suppress ENONET (Machine is not on the network) // also suppress ENONET (Machine is not on the network)
OsConstants.EPERM, 64 -> Timber.d(e) OsConstants.EPERM, OsConstants.EACCES, 64 -> Timber.d(e)
else -> Timber.w(e) else -> Timber.w(e)
} }
return@let false return@let false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment