From 2faba6dcb46718ae18df30220d1cb9dbe52a7fb7 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 23 Aug 2020 19:23:26 +0200 Subject: [PATCH] Removed debug code --- src/dorkbox/network/rmi/RmiManagerGlobal.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dorkbox/network/rmi/RmiManagerGlobal.kt b/src/dorkbox/network/rmi/RmiManagerGlobal.kt index b3c9e220..bb9a60f9 100644 --- a/src/dorkbox/network/rmi/RmiManagerGlobal.kt +++ b/src/dorkbox/network/rmi/RmiManagerGlobal.kt @@ -370,7 +370,7 @@ internal class RmiManagerGlobal(logger: KLogger, var insideResult: Any? try { // args!! is safe to do here (even though it doesn't make sense) -// insideResult = cachedMethod.invoke(connection, implObject, args) + insideResult = cachedMethod.invoke(connection, implObject, args) } catch (ex: Exception) { insideResult = ex.cause // added to prevent a stack overflow when references is false, (because 'cause' == "this"). @@ -383,8 +383,7 @@ internal class RmiManagerGlobal(logger: KLogger, insideResult.initCause(null) } } -// insideResult - Exception(":ASDASDUJHAKDSGJFHAKHDLA") + insideResult } @@ -396,8 +395,7 @@ internal class RmiManagerGlobal(logger: KLogger, // kotlin suspend returns, that DO NOT have a return value, REALLY return kotlin.Unit. This means there is no // return value! suspendResult = null - } - else if (suspendResult is Exception) { + } else if (suspendResult is Exception) { RmiUtils.cleanStackTraceForImpl(suspendResult, true) val fancyName = RmiUtils.makeFancyMethodName(cachedMethod)