Changeset View
Changeset View
Standalone View
Standalone View
src/service/Application.cpp
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Line(s) | 230 | if (offers.isEmpty()) { | |||
---|---|---|---|---|---|
232 | return false; | 232 | return false; | ||
233 | } | 233 | } | ||
234 | 234 | | |||
235 | return d->loadPlugin(offers.first()); | 235 | return d->loadPlugin(offers.first()); | ||
236 | } | 236 | } | ||
237 | 237 | | |||
238 | Application::~Application() | 238 | Application::~Application() | ||
239 | { | 239 | { | ||
240 | qDebug() << "Cleaning up..."; | 240 | qCDebug(KAMD_LOG_APPLICATION) << "Cleaning up..."; | ||
241 | 241 | | |||
242 | // Waiting for the threads to finish | 242 | // Waiting for the threads to finish | ||
243 | for (const auto thread : s_moduleThreads) { | 243 | for (const auto thread : s_moduleThreads) { | ||
244 | thread->quit(); | 244 | thread->quit(); | ||
245 | thread->wait(); | 245 | thread->wait(); | ||
246 | 246 | | |||
247 | delete thread; | 247 | delete thread; | ||
248 | } | 248 | } | ||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |