mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-05 06:10:07 -05:00
Transport: handle exceptions in inbound()
This commit is contained in:
parent
acecc1f490
commit
c95bb551ab
1 changed files with 7 additions and 0 deletions
|
|
@ -1533,6 +1533,13 @@ class Transport:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def inbound(raw, interface=None, tc=None):
|
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:
|
if not Transport.ready:
|
||||||
wait_start = time.time()
|
wait_start = time.time()
|
||||||
while not Transport.ready:
|
while not Transport.ready:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue