Update dependencies

This commit is contained in:
Mygod
2020-07-23 07:37:09 +08:00
parent fa409c8fe4
commit ecd277cd81
2 changed files with 5 additions and 4 deletions

View File

@@ -36,6 +36,7 @@ class RootServer @JvmOverloads constructor(private val warnLogger: (String) -> U
suspend fun sendClosed() = withContext(NonCancellable) { server.execute(CancelCommand(index)) }
private fun initException(targetClass: Class<*>, message: String): Throwable {
@Suppress("NAME_SHADOWING")
var targetClass = targetClass
while (true) {
try {
@@ -468,7 +469,7 @@ class RootServer @JvmOverloads constructor(private val warnLogger: (String) -> U
val commandJob = Job()
cancellables[callback] = { commandJob.cancel() }
defaultWorker.launch(commandJob) {
val result = try {
try {
val result = command.execute()
withContext(callbackWorker + NonCancellable) { output.pushResult(callback, result) }
} catch (e: Throwable) {