mirror of https://github.com/M66B/NetGuard.git
Fixed crash on stop
This commit is contained in:
parent
e02820260c
commit
4c26a0b84c
|
@ -1442,6 +1442,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
private void stopNative(ParcelFileDescriptor vpn, boolean clear) {
|
||||
Log.i(TAG, "Stop native clear=" + clear);
|
||||
|
||||
synchronized (getApplicationContext()) {
|
||||
if (tunnelThread != null) {
|
||||
Log.i(TAG, "Stopping tunnel thread");
|
||||
|
||||
|
@ -1461,6 +1462,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
Log.i(TAG, "Stopped tunnel thread");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void unprepare() {
|
||||
lock.writeLock().lock();
|
||||
|
|
Loading…
Reference in New Issue