mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
fixbug: Werewolf game has ended, but the team is still running idle
This commit is contained in:
parent
a3699128d1
commit
dd8ff37c42
1 changed files with 3 additions and 0 deletions
|
|
@ -126,6 +126,9 @@ class Team(BaseModel):
|
|||
self.run_project(idea=idea, send_to=send_to)
|
||||
|
||||
while n_round > 0:
|
||||
if self.env.is_idle:
|
||||
logger.debug("All roles are idle.")
|
||||
break
|
||||
n_round -= 1
|
||||
self._check_balance()
|
||||
await self.env.run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue