From c95bb551ab2c5e702efe4fa77ae35c568e607b3b Mon Sep 17 00:00:00 2001 From: JRG Date: Tue, 18 Aug 2026 14:32:27 +0300 Subject: [PATCH] Transport: handle exceptions in inbound() --- RNS/Transport.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RNS/Transport.py b/RNS/Transport.py index a96b6619..2e77376f 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1533,6 +1533,13 @@ class Transport: @staticmethod def inbound(raw, interface=None, tc=None): + try: Transport.process_inbound(raw, interface, tc) + except Exception as e: + RNS.log(f"Error while processing inbound on {interface}: {e}", RNS.LOG_ERROR) + RNS.trace_exception(e) + + @staticmethod + def process_inbound(raw, interface=None, tc=None): if not Transport.ready: wait_start = time.time() while not Transport.ready: