Prevent crash on timeout

This commit is contained in:
Mygod
2020-10-02 06:26:04 +08:00
parent 93c7a91fa8
commit aa7a8f1d80

View File

@@ -58,7 +58,11 @@ abstract class RootSession {
mutex.withLock {
check(usersCount == 0L)
timeoutJob = null
closeLocked()
try {
closeLocked()
} catch (e: Exception) {
Logger.me.e("Closing RootServer on timeout failed", e)
}
}
}
}