mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 13:50:12 +08:00
Fix addSuppressedMirai
on JVM
This commit is contained in:
parent
9ad9fb5cf3
commit
c95efe98a3
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user