This commit is contained in:
Mygod
2015-11-20 08:58:13 +08:00
parent 408e74384e
commit 946affb219
3 changed files with 3 additions and 1 deletions
@@ -442,7 +442,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
try {
conn = builder.establish()
if (conn == null) throw new Exception("Application not prepared.")
if (conn == null) changeState(State.STOPPED, getString(R.string.reboot_required))
} catch {
case ex: IllegalStateException =>
changeState(State.STOPPED, ex.getMessage)