Commit 8f8847b6 authored by Mygod's avatar Mygod

Skip processing if EOS is reached

parent 63722564
......@@ -72,7 +72,7 @@ class VpnService : BaseVpnService(), BaseService.Interface {
private inner class ProtectWorker : ConcurrentLocalSocketListener("ShadowsocksVpnThread",
File(Core.deviceStorage.noBackupFilesDir, "protect_path")) {
override fun acceptInternal(socket: LocalSocket) {
socket.inputStream.read()
if (socket.inputStream.read() == -1) return
val success = socket.ancillaryFileDescriptors!!.single()!!.use { fd ->
underlyingNetwork.let { network ->
if (network != null) try {
......
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