From 81e2965d10ec9dba1ed3c128428c9f7510ba4254 Mon Sep 17 00:00:00 2001 From: Robinson Date: Fri, 17 Mar 2023 14:06:32 +0100 Subject: [PATCH] optimized errorHandler --- src/dorkbox/network/aeron/AeronContext.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }