Set the max size of the DeviceManager thread pool to 1.

This commit is contained in:
John Maguire 2012-06-29 16:58:30 +02:00
parent 58a3a6831a
commit 20b11961f9
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ DeviceManager::DeviceManager(Application* app, QObject *parent)
app_(app), app_(app),
not_connected_overlay_(IconLoader::Load("edit-delete")) not_connected_overlay_(IconLoader::Load("edit-delete"))
{ {
thread_pool_.setMaxThreadCount(1);
connect(app_->task_manager(), SIGNAL(TasksChanged()), SLOT(TasksChanged())); connect(app_->task_manager(), SIGNAL(TasksChanged()), SLOT(TasksChanged()));
// Create the backend in the database thread // Create the backend in the database thread