add code to kill pdnsd daemon when VPN is stopped

This commit is contained in:
Nathan Freitas 2016-01-04 02:28:31 -05:00
parent f441736cd9
commit f36965211e
1 changed files with 6 additions and 0 deletions

View File

@ -218,6 +218,12 @@ public class OrbotVpnService extends VpnService implements Handler.Callback {
Tun2Socks.Stop();
try {
TorServiceUtils.killProcess(OrbotApp.filePdnsd);
} catch (Exception e) {
e.printStackTrace();
}
mThreadVPN = null;