1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-02-22 06:10:56 +00:00

Start sticky when not stopping

This commit is contained in:
M66B 2015-11-08 17:18:49 +01:00
parent 17015fdbd1
commit b1ea4f433c

View file

@ -376,7 +376,7 @@ public class SinkholeService extends VpnService {
msg.obj = intent;
mServiceHandler.sendMessage(msg);
return START_STICKY;
return (cmd == Command.stop ? START_NOT_STICKY : START_STICKY);
}
@Override