diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-08 20:53:38 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-13 23:15:19 +0100 |
commit | 156bb80befc5e3d2b004005a7e218a2bbc3c0d17 (patch) | |
tree | ea11f66d2078fc8c39a9dd5d3e24f8f7913d63b5 | |
parent | 34225cccc5bb9890b07fd598018052ba44d67ec5 (diff) | |
download | NetworkManager-156bb80befc5e3d2b004005a7e218a2bbc3c0d17.tar.gz |
glib-aux: fix priority for nm_g_idle_add_source()
nm_g_idle_add_source() is supposed to work like g_idle_add(). Use the correct
priority.
I think this causes little actual problems, because usually we don't
carefully tune the priorities and would be mostly fine with either.
Fixes: 6b18fc252d1e ('shared: add nm_g_{idle,timeout}_add_source() helpers')
(cherry picked from commit 15e88379452e231d1821c0d7f8e4df89ccd86e8b)
-rw-r--r-- | src/libnm-glib-aux/nm-shared-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnm-glib-aux/nm-shared-utils.h b/src/libnm-glib-aux/nm-shared-utils.h index 6e1ad658eb..a953140b84 100644 --- a/src/libnm-glib-aux/nm-shared-utils.h +++ b/src/libnm-glib-aux/nm-shared-utils.h @@ -1789,7 +1789,7 @@ nm_g_idle_add_source(GSourceFunc func, gpointer user_data) /* A convenience function to attach a new timeout source to the default GMainContext. * In that sense it's very similar to g_idle_add() except that it returns a * reference to the new source. */ - return nm_g_source_attach(nm_g_idle_source_new(G_PRIORITY_DEFAULT, func, user_data, NULL), + return nm_g_source_attach(nm_g_idle_source_new(G_PRIORITY_DEFAULT_IDLE, func, user_data, NULL), NULL); } |