Fix another crash
This commit is contained in:
@@ -198,6 +198,7 @@ class MainActivity : AppCompatActivity(), ShadowsocksConnection.Interface, Drawe
|
||||
override fun binderDied() {
|
||||
super.binderDied()
|
||||
app.handler.post {
|
||||
connection.disconnect()
|
||||
Executable.killAll()
|
||||
connection.connect()
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ class ShadowsocksConnection(private val instance: Interface) : ServiceConnection
|
||||
fun onServiceDisconnected() { }
|
||||
override fun binderDied() {
|
||||
connection.service = null
|
||||
connection.disconnect()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user