mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +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:
|
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:
|
Deprecations:
|
||||||
^^^^^^^^^^^^^
|
^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ def _worker(remote, parent_remote, env_fn_wrapper):
|
||||||
elif cmd == 'render':
|
elif cmd == 'render':
|
||||||
remote.send(env.render(data))
|
remote.send(env.render(data))
|
||||||
elif cmd == 'close':
|
elif cmd == 'close':
|
||||||
|
env.close()
|
||||||
remote.close()
|
remote.close()
|
||||||
break
|
break
|
||||||
elif cmd == 'get_spaces':
|
elif cmd == 'get_spaces':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue