mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-19 13:32:03 +00:00
Check if the pipe is not None is _poll (Fixes #1542)
This commit is contained in:
committed by
Christopher Hesse
parent
cab1d0ec38
commit
316156903d
@@ -292,6 +292,8 @@ class AsyncVectorEnv(VectorEnv):
|
||||
delta = None
|
||||
for pipe in self.parent_pipes:
|
||||
delta = max(end_time - time.time(), 0)
|
||||
if pipe is None:
|
||||
return False
|
||||
if pipe.closed or (not pipe.poll(delta)):
|
||||
return False
|
||||
return True
|
||||
|
Reference in New Issue
Block a user