From c0c90595fd7f382d5c155cf130fd9da17f06a54a Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 9 Sep 2022 07:29:46 +0100 Subject: [PATCH] Close Session context before importing tracks --- app/musicmuster.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index 501b236..f173c92 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -480,10 +480,10 @@ class Window(QMainWindow, Ui_MainWindow): if result == QMessageBox.Cancel: return - # Import in separate thread - thread = threading.Thread(target=self._import_tracks, - args=(new_tracks,)) - thread.start() + # Import in separate thread + thread = threading.Thread(target=self._import_tracks, + args=(new_tracks,)) + thread.start() def _import_tracks(self, tracks: list): """