Skip to content

Commit

Permalink
call deleteLater when the Worker finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed May 31, 2020
1 parent 412a28a commit 7c15f40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions msl/qt/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def start(self, *args, **kwargs):
self._worker.error.connect(lambda *ignore: self._thread.exit(-1))
self._worker.error.connect(self.error_handler)
self._worker.finished.connect(self._worker_finished)
self._worker.finished.connect(self._worker.deleteLater)
self._thread.started.connect(self._worker._process)
self._thread.finished.connect(self._thread.deleteLater)
self._thread.finished.connect(self.finished)
Expand Down

0 comments on commit 7c15f40

Please sign in to comment.