Skip to content

Commit

Permalink
Properly close AutoControlledThread in PySide6
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Jun 10, 2023
1 parent 2f29bb2 commit 4e0c48b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AutoSplit.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,8 @@ def closeEvent(self, event: QtGui.QCloseEvent | None = None):

def exit_program() -> NoReturn:
if self.update_auto_control:
self.update_auto_control.terminate()
# self.update_auto_control.terminate() hangs in PySide6
self.update_auto_control.quit()
self.capture_method.close(self)
if event is not None:
event.accept()
Expand Down

0 comments on commit 4e0c48b

Please sign in to comment.