Commit 2572a367 authored by Max Lv's avatar Max Lv

fix a FC

parent fcb8d8af
...@@ -422,11 +422,9 @@ class ShadowsocksService extends Service { ...@@ -422,11 +422,9 @@ class ShadowsocksService extends Service {
sb ++= "kill -9 `cat /data/data/com.github.shadowsocks/shadowsocks.pid`" ++= "\n" sb ++= "kill -9 `cat /data/data/com.github.shadowsocks/shadowsocks.pid`" ++= "\n"
sb ++= "killall -9 shadowsocks" ++= "\n" sb ++= "killall -9 shadowsocks" ++= "\n"
} }
if (config.isHTTPProxy) { if (!waitForProcess("polipo")) {
if (!waitForProcess("polipo")) { sb ++= "kill -9 `cat /data/data/com.github.shadowsocks/polipo.pid`" ++= "\n"
sb ++= "kill -9 `cat /data/data/com.github.shadowsocks/polipo.pid`" ++= "\n" sb ++= "killall -9 polipo" ++= "\n"
sb ++= "killall -9 polipo" ++= "\n"
}
} }
Utils.runCommand(sb.toString()) Utils.runCommand(sb.toString())
} }
......
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