mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 20:34:39 +01:00
Don't get stuck when exiting Clementine while library is being created/updated
This commit is contained in:
parent
c4ae0209c6
commit
09596e3732
@ -191,6 +191,10 @@ WorkerPool<HandlerType>::~WorkerPool() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (ReplyType* reply, message_queue_) {
|
||||
reply->Abort();
|
||||
}
|
||||
}
|
||||
|
||||
template <typename HandlerType>
|
||||
|
@ -101,7 +101,7 @@ Library::Library(Application* app, QObject *parent)
|
||||
Library::~Library() {
|
||||
watcher_->deleteLater();
|
||||
watcher_thread_->exit();
|
||||
watcher_thread_->wait();
|
||||
watcher_thread_->wait(5000 /* five seconds */);
|
||||
}
|
||||
|
||||
void Library::Init() {
|
||||
|
Loading…
Reference in New Issue
Block a user