@@ -7,6 +7,9 @@ private var isAddSuppressedSupported: Boolean = true
@MiraiInternalAPI
@Suppress("EXTENSION_SHADOWED_BY_MEMBER")
actual fun Throwable.addSuppressed(e: Throwable) {
+ if (this === e) {
+ return
+ }
if (!isAddSuppressedSupported) {
return
}
@@ -5,6 +5,9 @@ private var isAddSuppressedSupported: Boolean = true