diff --git a/src/dorkbox/network/connection/ListenerManager.kt b/src/dorkbox/network/connection/ListenerManager.kt index e821cb2a..3a351bd7 100644 --- a/src/dorkbox/network/connection/ListenerManager.kt +++ b/src/dorkbox/network/connection/ListenerManager.kt @@ -115,10 +115,11 @@ internal class ListenerManager(private val logger: KLogg throwable.stackTrace = stackTrace.filterIndexed { index, element -> val stackName = element.className if (index <= firstDorkboxIndex && index >= lastDorkboxIndex) { - true + false } else { - !(stackName.startsWith("kotlinx.coroutines.") || + val isCoroutine = !(stackName.startsWith("kotlinx.coroutines.") || stackName.startsWith("kotlin.coroutines.")) + isCoroutine && element.methodName != "invokeSuspend" } }.toTypedArray() }