Skip to content

Commit

Permalink
Fixed bug in opencv viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-il-forte committed Dec 4, 2023
1 parent 54ab133 commit 1dc3048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mushroom_rl/utils/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,4 +422,5 @@ def _window_was_closed(self):
return cv2.getWindowProperty(self._window_name, cv2.WND_PROP_VISIBLE) == 0

def close(self):
cv2.destroyWindow(self._window_name)
if self._created_viewer:
cv2.destroyWindow(self._window_name)

0 comments on commit 1dc3048

Please sign in to comment.