Fix throwing in finally
This commit is contained in:
@@ -226,7 +226,11 @@ class RootServer {
|
|||||||
}
|
}
|
||||||
future.await()
|
future.await()
|
||||||
} finally {
|
} finally {
|
||||||
|
try {
|
||||||
readUnexpectedStderr()?.let { Logger.me.e(it) }
|
readUnexpectedStderr()?.let { Logger.me.e(it) }
|
||||||
|
} catch (e: IOException) {
|
||||||
|
Logger.me.e("Failed to read from stderr", e) // avoid the real exception being swallowed
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user