[gnome-software: 31/38] fedora-pkgdb-collections: Remove unnecessary mutex locking
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 31/38] fedora-pkgdb-collections: Remove unnecessary mutex locking
- Date: Thu, 3 Mar 2022 16:39:53 +0000 (UTC)
commit e19257ab6f0132d0bbdc84c667f1643d14becd23
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Mar 2 14:11:45 2022 +0000
fedora-pkgdb-collections: Remove unnecessary mutex locking
`distros` and `is_valid` aren’t accessed during setup, so the lock
doesn’t need to be held.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index e07eee48a..36ba7247f 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -141,7 +141,6 @@ gs_plugin_fedora_pkgdb_collections_setup_async (GsPlugin *plugin,
g_autoptr(GFile) file = NULL;
g_autoptr(GsOsRelease) os_release = NULL;
g_autoptr(GTask) task = NULL;
- g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&self->mutex);
g_autoptr(GError) local_error = NULL;
task = g_task_new (plugin, cancellable, callback, user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]