Fix #437
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user