Skip to content

Commit 9b172b0

Browse files
authored
Closing the environment should not be a blocking op (#311)
1 parent 76b46cf commit 9b172b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aviary/dataset_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ async def close(req: EnvRequest):
168168
# the env crashed, not that we somehow lost track of it.
169169
del self.envs[req.env_id]
170170

171-
with handle_exc_as_http_exc():
172-
await env.close()
171+
with handle_exc_as_http_exc():
172+
await env.close()
173173

174174
return {"env_id": req.env_id}
175175

0 commit comments

Comments
 (0)