Skip to content

Commit 79bc49e

Browse files
committed
Remove early-exit
1 parent 1997ac6 commit 79bc49e

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

source/isaaclab_ov/isaaclab_ov/renderers/ovrtx_renderer_strategies.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,14 @@ def record_write(self, binding: Any, data: wp.array, cuda_stream: int) -> None:
230230

231231
def wait_for_writes(self) -> None:
232232
"""Wait until this slot's async writes are done, so its buffers are safe to reuse."""
233-
if not self.write_ops:
234-
return
235-
try:
236-
for op in self.write_ops:
237-
op.wait()
238-
except Exception as e:
239-
raise RuntimeError("Failed to complete OVRTX async binding write before slot reuse") from e
240-
finally:
241-
self.write_ops = []
233+
if self.write_ops:
234+
try:
235+
for op in self.write_ops:
236+
op.wait()
237+
except Exception as e:
238+
raise RuntimeError("Failed to complete OVRTX async binding write before slot reuse") from e
239+
finally:
240+
self.write_ops = []
242241

243242

244243
class _AsyncRenderStrategy(_RenderStrategy):

uv.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)