Native conditional reload

This commit is contained in:
M66B 2016-01-14 22:49:32 +01:00
parent 65cc667d71
commit 7430c8a65b
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
if (vpn == null)
throw new IllegalStateException("Handover failed");
}
jni_reload(vpn.getFd());
if (prefs.getBoolean("log", false))
jni_reload(vpn.getFd());
if (prev != null)
stopVPN(prev);
break;