Skip to content

Commit

Permalink
eager disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Oct 20, 2024
1 parent 73dd67e commit b8bf0b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ def evaluate(self):
FROM states
""",
).fetchall()
if all(not reset for reset, env_id in resets if env_id in key_set):
break
time.sleep(0.5)
if all(not reset for reset, env_id in resets if env_id in key_set):
break
time.sleep(0.5)
if self.config.async_wrapper:
for key, state in zip(self.event_tracker.keys(), new_states):
self.env_recv_queues[key].put(state)
Expand Down

0 comments on commit b8bf0b3

Please sign in to comment.