Update repeater/main.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Lloyd
2025-12-09 21:39:58 +00:00
committed by GitHub
parent 0e5037a7f3
commit ef4cb035be

View File

@@ -155,8 +155,10 @@ class RepeaterDaemon:
Enqueues packets for router processing.
"""
if self.router:
await self.router.enqueue(packet)
try:
await self.router.enqueue(packet)
except Exception as e:
logger.error(f"Error enqueuing packet in router: {e}", exc_info=True)
def get_stats(self) -> dict:
stats = {}