Prevent crash on timeout
This commit is contained in:
@@ -58,7 +58,11 @@ abstract class RootSession {
|
|||||||
mutex.withLock {
|
mutex.withLock {
|
||||||
check(usersCount == 0L)
|
check(usersCount == 0L)
|
||||||
timeoutJob = null
|
timeoutJob = null
|
||||||
closeLocked()
|
try {
|
||||||
|
closeLocked()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Logger.me.e("Closing RootServer on timeout failed", e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user