Skip to content

Commit

Permalink
Merge pull request #20 from airboxlab/fix_18
Browse files Browse the repository at this point in the history
safer access to Q
  • Loading branch information
antoine-galataud committed Dec 18, 2023
2 parents f2aa23f + e3c4343 commit e237a15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rllibenergyplus/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ def _send_actions(self, state_argument):

# wait for next action
with self.act_queue_mutex:
if self.simulation_complete:
return
next_action = self.act_queue.get()

# end of simulation
Expand Down

0 comments on commit e237a15

Please sign in to comment.