Skip to content

Commit

Permalink
Add infinite sleep when grading .close() is called
Browse files Browse the repository at this point in the history
  • Loading branch information
harper-u3d authored and Jonathan Harper committed Feb 11, 2019
1 parent 8b1097a commit 888b370
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions obstacle_tower_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def close(self):
garbage collected or when the program exits.
"""
self._env.close()
if self.is_grading():
import time
while True:
time.sleep(10)

def get_action_meanings(self):
return self.action_meanings
Expand Down

0 comments on commit 888b370

Please sign in to comment.