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

refine service close

parent 82849540
......@@ -567,12 +567,7 @@ class Shadowsocks
}
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. */
......
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