process connection messages on main run thread

This commit is contained in:
woodser 2025-06-01 17:36:57 -04:00 committed by woodser
parent 3648c1eb0e
commit fa375b3cbd

View file

@ -872,7 +872,7 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
log.info("We got a {} from a peer with yet unknown address on connection with uid={}", networkEnvelope.getClass().getSimpleName(), uid);
}
ThreadUtils.execute(() -> onMessage(networkEnvelope, this), THREAD_ID);
onMessage(networkEnvelope, this);
ThreadUtils.execute(() -> connectionStatistics.addReceivedMsgMetrics(System.currentTimeMillis() - ts, size), THREAD_ID);
}
} catch (InvalidClassException e) {