Make repeater timeout configurable

This commit is contained in:
Mygod
2020-07-02 09:37:17 +08:00
parent 67e1530492
commit 6b0978bdf3
2 changed files with 22 additions and 13 deletions

View File

@@ -62,6 +62,10 @@ class TetherTimeoutMonitor(private val timeout: Long = 0,
private var noClient = true
private var timeoutJob: Job? = null
init {
onClientsChanged(true)
}
override fun close() {
timeoutJob?.cancel()
timeoutJob = null