fix NPE for when mHandler is null
This commit is contained in:
parent
6832363905
commit
9b4ef18b13
|
@ -81,6 +81,7 @@ public class OrbotVpnService extends VpnService implements Handler.Callback {
|
||||||
else if (action.equals("stop"))
|
else if (action.equals("stop"))
|
||||||
{
|
{
|
||||||
stopVPN();
|
stopVPN();
|
||||||
|
if (mHandler != null)
|
||||||
mHandler.postDelayed(new Runnable () { public void run () { stopSelf(); }}, 1000);
|
mHandler.postDelayed(new Runnable () { public void run () { stopSelf(); }}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue