Fixed SubprocVecEnv close. (#68)

Updated changelog.

Co-authored-by: Matthias K <wirspielen@web.de>
This commit is contained in:
Matthias K 2020-06-20 18:01:37 +02:00 committed by GitHub
parent 644d2c17ac
commit 977a615c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,7 @@ New Features:
Bug Fixes:
^^^^^^^^^^
- Fixed a bug in the ``close()`` method of ``SubprocVecEnv``, causing wrappers further down in the wrapper stack to not be closed. (@NeoExtended)
Deprecations:
^^^^^^^^^^^^^

View file

@ -29,6 +29,7 @@ def _worker(remote, parent_remote, env_fn_wrapper):
elif cmd == 'render':
remote.send(env.render(data))
elif cmd == 'close':
env.close()
remote.close()
break
elif cmd == 'get_spaces':