Transport: handle exceptions in inbound()

This commit is contained in:
JRG 2026-08-18 14:32:27 +03:00 committed by Mark Qvist
parent acecc1f490
commit c95bb551ab

View file

@ -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: