Permalink
Browse files

Quit thread before deleting the loader (#6254)

  • Loading branch information...
jonaski authored and hatstand committed Jan 15, 2019
1 parent 681f986 commit 8d78dae9b6ce790e6e2baa6618034d5d980f184d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/devices/gpoddevice.cpp
@@ -62,6 +62,11 @@ void GPodDevice::LoadFinished(Itdb_iTunesDB* db) {
db_ = db;
db_wait_cond_.wakeAll();

loader_thread_->quit();
loader_thread_->wait(1000);
loader_thread_->deleteLater();
loader_thread_ = nullptr;

loader_->deleteLater();
loader_ = nullptr;
}

0 comments on commit 8d78dae

Please sign in to comment.