Skip to content

Commit

Permalink
Revert "Fix a potential race condition"
Browse files Browse the repository at this point in the history
This reverts commit 1d93867.
  • Loading branch information
madeye committed Dec 20, 2018
1 parent bc50642 commit 425abfa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/src/main/java/com/github/shadowsocks/bg/VpnService.kt
Expand Up @@ -246,9 +246,13 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
cmd += "--dnsgw"
cmd += "127.0.0.1:${DataStore.portLocalDns}"
}

data.processes.start(cmd)

data.processes.start(cmd) {
try {
sendFd(fd)
} catch (e: ErrnoException) {
stopRunner(true, e.message)
}
}
return fd
}

Expand Down

0 comments on commit 425abfa

Please sign in to comment.