2.155 release

This commit is contained in:
M66B 2017-11-07 21:37:13 +01:00
parent 1e3965b58d
commit 286fcfefd5
2 changed files with 6 additions and 4 deletions

View File

@ -6,10 +6,10 @@ android {
defaultConfig {
applicationId = "eu.faircode.netguard"
versionName = "2.154"
versionName = "2.155"
minSdkVersion 22
targetSdkVersion 27
versionCode = 2017110703
versionCode = 2017110704
archivesBaseName = "NetGuard-v$versionName"
externalNativeBuild {

View File

@ -1428,6 +1428,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
Log.i(TAG, "Running tunnel");
jni_run(vpn.getFd(), mapForward.containsKey(53), rcode);
Log.i(TAG, "Tunnel exited");
tunnelThread = null;
}
});
tunnelThread.setPriority(Thread.MAX_PRIORITY);
@ -1446,9 +1447,10 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
jni_stop();
while (true)
Thread thread = tunnelThread;
while (thread != null)
try {
tunnelThread.join();
thread.join();
break;
} catch (InterruptedException ignored) {
}