diff --git a/src/main/scala/com/github/shadowsocks/Shadowsocks.scala b/src/main/scala/com/github/shadowsocks/Shadowsocks.scala index dcbf7e38..71b5c45a 100644 --- a/src/main/scala/com/github/shadowsocks/Shadowsocks.scala +++ b/src/main/scala/com/github/shadowsocks/Shadowsocks.scala @@ -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. */