Skip to content

Commit

Permalink
Revert "adds explicit killing of workers"
Browse files Browse the repository at this point in the history
  • Loading branch information
lcswillems committed Nov 1, 2020
1 parent d4212e1 commit 77a0d1b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions torch_ac/utils/penv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ def worker(conn, env):
elif cmd == "reset":
obs = env.reset()
conn.send(obs)
elif cmd == "kill":
return
else:
raise NotImplementedError

Expand All @@ -36,10 +34,6 @@ def __init__(self, envs):
p.start()
remote.close()

def __del__(self):
for local in self.locals:
local.send(("kill", None))

def reset(self):
for local in self.locals:
local.send(("reset", None))
Expand Down

0 comments on commit 77a0d1b

Please sign in to comment.