Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
fix: remove multi thread warning
Browse files Browse the repository at this point in the history
Change-Id: I1523a648073e513ff6050d22d7a081f996c74102
  • Loading branch information
Iceyer committed Nov 14, 2018
1 parent 0533067 commit cf95f87
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/services/store_daemon_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ QVariantMap StoreDaemonManager::queryVersions(const QStringList& apps) {
const AppVersionList version_list = version_reply.value();
QVariantList version_vars;
for (const AppVersion& version : version_list) {

auto pkg_name = version.pkg_name;
const int arch_idx = pkg_name.indexOf(':');
if (arch_idx > 0)
Expand All @@ -486,7 +486,7 @@ QVariantMap StoreDaemonManager::queryVersions(const QStringList& apps) {
}
}
}

const QStringList& app_names = deb_names_.values(version.pkg_name);
for (const QString& app_name : app_names) {
version_vars.append(QVariantMap {
Expand Down Expand Up @@ -597,8 +597,7 @@ QVariantMap StoreDaemonManager::getJobsInfo(const QStringList& jobs) {
QVariantMap job_info;
LastoreJobInterface job_interface(kLastoreDebJobService,
job,
QDBusConnection::sessionBus(),
this);
QDBusConnection::sessionBus());
if (job_interface.isValid()) {
if (ReadJobInfo(job_interface, job, deb_names_, job_info)) {
jobs_info.append(job_info);
Expand Down Expand Up @@ -636,4 +635,4 @@ QVariantMap StoreDaemonManager::fixError(const QString& error_type) {
};
}

} // namespace dstore
} // namespace dstore

0 comments on commit cf95f87

Please sign in to comment.