in addition to aborting the task, also disconnect from the message signal

This commit is contained in:
dries.k
2023-05-28 18:14:44 +02:00
parent 81c7e0a1da
commit a7f5534c6b

View File

@@ -175,6 +175,10 @@ class MainApplication(QtWidgets.QApplication):
if task := getattr(self, s, None):
task.abort()
aborted_tasks.append(task)
try:
task.message.disconnect()
except TypeError:
pass
for task in aborted_tasks:
task.wait()