diff --git a/rendercanvas/glfw.py b/rendercanvas/glfw.py index b6417fd..09631da 100644 --- a/rendercanvas/glfw.py +++ b/rendercanvas/glfw.py @@ -335,7 +335,8 @@ def _rc_close(self): if not glfw._rc_alive: # May not always be able to close the proper way on system exit self._window = None - elif self._window is not None: + return + if self._window is not None: glfw.destroy_window(self._window) # not just glfw.hide_window self._window = None self.submit_event({"event_type": "close"})