From 2b4c0bf4d0f814fd9a6ac8e49d5e6a16a7c1fc76 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Sat, 27 Jul 2024 19:01:16 +0300 Subject: [PATCH] [~] FastFix --- src/core/Client.py | 3 +++ src/core/__init__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/Client.py b/src/core/Client.py index 364081a..e68233c 100644 --- a/src/core/Client.py +++ b/src/core/Client.py @@ -134,6 +134,9 @@ class Client: async def send_event(self, event_name, event_data, to_all=True): self.log.debug(f"send_event: {event_name}:{event_data}; {to_all=}") + if not self.ready: + self.log.debug(f"Client not ready.") + return if isinstance(event_data, (list, tuple, dict)): event_data = json.dumps(event_data, separators=(',', ':')) if len(event_data) > 104857599: diff --git a/src/core/__init__.py b/src/core/__init__.py index aa4eb90..86c8f99 100644 --- a/src/core/__init__.py +++ b/src/core/__init__.py @@ -10,7 +10,7 @@ __title__ = 'KuiToi-Server' __description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.' __url__ = 'https://github.com/kuitoi/kuitoi-Server' __version__ = '0.4.8 (pre)' -__build__ = 2483 # Я это считаю лог файлами +__build__ = 2511 # Я это считаю лог файлами __author__ = 'SantaSpeen' __author_email__ = 'admin@kuitoi.su' __license__ = "FPA"