Fix addSuppressedMirai on JVM

This commit is contained in:
Him188 2020-04-05 23:09:12 +08:00
parent 9ad9fb5cf3
commit c95efe98a3

View File

@ -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)
}
}