docs(B3): _on_ddp_connected set_status sync — Begründung dokumentiert
Bewusst sync: First status after connect does not need await-confirmation. PulseController takes over with set_status_async on the next tick (1.5s). This avoids a 2s-await-wait during the critical connect path.
This commit is contained in:
@@ -1120,6 +1120,10 @@ class RocketChatAdapter(BasePlatformAdapter):
|
|||||||
to prevent race condition with gateway_state.json.
|
to prevent race condition with gateway_state.json.
|
||||||
"""
|
"""
|
||||||
if self.ddp:
|
if self.ddp:
|
||||||
|
# B3: Bewusst sync — first status after connect does not need
|
||||||
|
# await-confirmation. PulseController takes over with
|
||||||
|
# set_status_async on the next tick (1.5s). This avoids a
|
||||||
|
# 2s-await-wait during the critical connect path.
|
||||||
self.ddp.set_status("online")
|
self.ddp.set_status("online")
|
||||||
# V8.6: PulseController DDP-Bindung nach Connect (EC-1)
|
# V8.6: PulseController DDP-Bindung nach Connect (EC-1)
|
||||||
if hasattr(self, '_presence_engine') and self._presence_engine is not None:
|
if hasattr(self, '_presence_engine') and self._presence_engine is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user