From b4be9fa7571bd7b5827c7f4cd92bfa2ce42573be Mon Sep 17 00:00:00 2001 From: Salad Dais Date: Tue, 29 Oct 2024 07:31:59 +0000 Subject: [PATCH] Better handle resent reliable messages --- hippolyzer/lib/client/hippo_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hippolyzer/lib/client/hippo_client.py b/hippolyzer/lib/client/hippo_client.py index 21f1c7f..ed55506 100644 --- a/hippolyzer/lib/client/hippo_client.py +++ b/hippolyzer/lib/client/hippo_client.py @@ -108,8 +108,9 @@ class HippoClientProtocol(asyncio.DatagramProtocol): if should_handle: self.session.message_handler.handle(message) except: - LOG.exception("Failed in region message handler") - region.message_handler.handle(message) + LOG.exception("Failed in session message handler") + if should_handle: + region.message_handler.handle(message) class HippoClientRegion(BaseClientRegion):