Abort network connections before closing. #892

This commit is contained in:
Craig Drummond
2016-09-15 20:41:56 +01:00
committed by Craig Drummond
parent 6955d8620d
commit 66b4b6bfa3
2 changed files with 2 additions and 1 deletions

View File

@@ -40,6 +40,7 @@
27. Fix crash when changinh playqueue view type.
28. Use same sidebar inactive tab mouse-over for all styles.
29. Fix colouring issues with some Kvantum styles.
30. Abort network connections before closing.
2.0.1
-----

View File

@@ -101,8 +101,8 @@ void NetworkJob::cancelJob()
disconnect(job, SIGNAL(uploadProgress(qint64, qint64)), this, SIGNAL(uploadProgress(qint64, qint64)));
disconnect(job, SIGNAL(downloadProgress(qint64, qint64)), this, SLOT(downloadProg(qint64, qint64)));
disconnect(job, SIGNAL(destroyed(QObject *)), this, SLOT(jobDestroyed(QObject *)));
job->close();
job->abort();
job->close();
job->deleteLater();
job=0;
}