Refine #602 further

This commit is contained in:
Max Lv
2016-03-13 13:33:36 +08:00
parent 017dd425a0
commit 78e57de833
2 changed files with 6 additions and 6 deletions
@@ -396,7 +396,7 @@ class ShadowsocksNatService extends BaseService {
} catch {
case ex: Exception =>
changeState(State.STOPPED, getString(R.string.service_failed))
stopRunner(false)
stopRunner(true)
this.config = null
}
}
@@ -427,7 +427,7 @@ class ShadowsocksNatService extends BaseService {
notification = new ShadowsocksNotification(this, config.profileName, true)
} else {
changeState(State.STOPPED, getString(R.string.service_failed))
stopRunner(false)
stopRunner(true)
}
}
}
@@ -106,7 +106,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
}
override def onRevoke() {
stopRunner(false)
stopRunner(true)
}
override def stopRunner(stopService: Boolean) {
@@ -193,7 +193,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
} catch {
case ex: Exception =>
changeState(State.STOPPED, getString(R.string.service_failed))
stopRunner(false)
stopRunner(true)
this.config = null
}
}
@@ -221,7 +221,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
notification = new ShadowsocksNotification(this, config.profileName)
} else {
changeState(State.STOPPED, getString(R.string.service_failed))
stopRunner(false)
stopRunner(true)
}
}
}
@@ -386,7 +386,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
}
if (conn == null) {
stopRunner(false)
stopRunner(true)
return -1
}