Avoid service restarted by system

This commit is contained in:
Max Lv
2016-02-02 09:52:36 +08:00
parent 187cb28d15
commit 65635c6b93
3 changed files with 4 additions and 3 deletions
@@ -335,8 +335,6 @@ class ShadowsocksNatService extends BaseService {
ConfigUtils.refresh(this)
}
override def onStartCommand(intent: Intent, flags: Int, startId: Int): Int = Service.START_STICKY
def killProcesses() {
if (sslocalProcess != null) {
sslocalProcess.destroy()