Commit c95efe98 authored by Him188's avatar Him188

Fix `addSuppressedMirai` on JVM

parent 9ad9fb5c
......@@ -2,4 +2,10 @@ package net.mamoe.mirai.qqandroid.utils
@PublishedApi
internal actual fun Throwable.addSuppressedMirai(e: Throwable) {
if (e === this) {
return
}
kotlin.runCatching {
this.addSuppressed(e)
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment