Support specifying network interface

Fix #15.
This commit is contained in:
Mygod
2018-06-02 07:29:46 +08:00
parent 8e335fec1b
commit da9bf4867e
14 changed files with 326 additions and 173 deletions

View File

@@ -59,10 +59,8 @@ class ClientsFragment : Fragment(), ServiceConnection {
}
override fun onServiceDisconnected(name: ComponentName?) {
val clients = clients
if (clients != null) {
clients.clientsChanged -= this
this.clients = null
}
val clients = clients ?: return
clients.clientsChanged -= this
this.clients = null
}
}