Commit 7e7a61c6 authored by Max Lv's avatar Max Lv

refine service close

parent 82849540
...@@ -567,13 +567,8 @@ class Shadowsocks ...@@ -567,13 +567,8 @@ class Shadowsocks
} }
def serviceStop() { def serviceStop() {
if (ShadowVpnService.isServiceStarted(this)) {
stopService(new Intent(this, classOf[ShadowVpnService]))
}
if (ShadowsocksService.isServiceStarted(this)) {
sendBroadcast(new Intent(Action.CLOSE)) sendBroadcast(new Intent(Action.CLOSE))
} }
}
/** Called when connect button is clicked. */ /** Called when connect button is clicked. */
def serviceStart: Boolean = { def serviceStart: Boolean = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment