From c6684b12463ef1cd50fad11478aa35f4347a8d34 Mon Sep 17 00:00:00 2001 From: chenyushuo <297086016@qq.com> Date: Wed, 23 Oct 2024 20:06:03 +0800 Subject: [PATCH] bug fix in leave chatroom --- examples/environments/chatroom/envs/chatroom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/environments/chatroom/envs/chatroom.py b/examples/environments/chatroom/envs/chatroom.py index 7dff2d56c..7e1104199 100644 --- a/examples/environments/chatroom/envs/chatroom.py +++ b/examples/environments/chatroom/envs/chatroom.py @@ -171,7 +171,7 @@ def leave(self, agent: AgentBase) -> bool: if agent.name not in self.children: return False del self.children[agent.name] - del self.children[agent.name] + del self.member_introduction[agent.name] return True @event_func