mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-30 20:18:15 +00:00
Fixed SubprocVecEnv close. (#68)
Updated changelog. Co-authored-by: Matthias K <wirspielen@web.de>
This commit is contained in:
parent
644d2c17ac
commit
977a615c82
2 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
^^^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue