Fix NAT mode not working after task removed from recent

This commit is contained in:
Mygod
2015-12-26 23:27:21 +08:00
parent 51ceb3dac5
commit 0018a7ca9e
4 changed files with 10 additions and 17 deletions
@@ -458,8 +458,6 @@ class ShadowsocksNatService extends BaseService {
override def stopRunner() {
super.stopRunner()
// channge the state
changeState(State.STOPPING)
@@ -476,11 +474,7 @@ class ShadowsocksNatService extends BaseService {
// reset NAT
killProcesses()
// stop the service if nothing has bound to it
stopSelf()
// change the state
changeState(State.STOPPED)
super.stopRunner()
}
override def getTag = TAG