Suppress close exception instead
This commit is contained in:
@@ -39,7 +39,7 @@ abstract class RootSession {
|
|||||||
try {
|
try {
|
||||||
server.close()
|
server.close()
|
||||||
} catch (eClose: Throwable) {
|
} catch (eClose: Throwable) {
|
||||||
throw eClose.apply { addSuppressed(e) }
|
e.addSuppressed(eClose)
|
||||||
}
|
}
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user