refine #100
This commit is contained in:
@@ -310,9 +310,12 @@ class ShadowsocksNatService extends Service with BaseService {
|
||||
}
|
||||
|
||||
override def onStartCommand(intent: Intent, flags: Int, startId: Int): Int = {
|
||||
Service.START_NOT_STICKY
|
||||
Service.START_STICKY
|
||||
}
|
||||
|
||||
override def onTaskRemoved(intent: Intent) {
|
||||
stopRunner()
|
||||
}
|
||||
|
||||
def killProcesses() {
|
||||
Console.runRootCommand(Utils.getIptables + " -t nat -F OUTPUT")
|
||||
|
||||
@@ -256,7 +256,11 @@ class ShadowsocksVpnService extends VpnService with BaseService {
|
||||
}
|
||||
|
||||
override def onStartCommand(intent: Intent, flags: Int, startId: Int): Int = {
|
||||
Service.START_NOT_STICKY
|
||||
Service.START_STICKY
|
||||
}
|
||||
|
||||
override def onTaskRemoved(intent: Intent) {
|
||||
stopRunner()
|
||||
}
|
||||
|
||||
override def onRevoke() {
|
||||
|
||||
Reference in New Issue
Block a user