diff --git a/src/dorkbox/network/aeron/AeronContext.kt b/src/dorkbox/network/aeron/AeronContext.kt index c5050f8d..8b9116b6 100644 --- a/src/dorkbox/network/aeron/AeronContext.kt +++ b/src/dorkbox/network/aeron/AeronContext.kt @@ -84,9 +84,7 @@ class AeronContext( // we DO NOT want to abort the JVM if there are errors. // this replaces the default handler with one that doesn't abort the JVM - mediaDriverContext.errorHandler { error -> - aeronErrorHandler(error) - } + mediaDriverContext.errorHandler(aeronErrorHandler) return mediaDriverContext }