mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 02:30:24 +01:00
libnm: fix a g_signal_handler_find() call in NMRemoteSettings
NMRemoteSettings was looking for a signal handler on an NMRemoteConnection using only G_SIGNAL_MATCH_FUNC, which means it would get tripped up if a connection was known to two different NMRemoteSettings objects at once. Although that can't happen now, it might in the future if NMRemoteConnection became an NMObject, so use G_SIGNAL_MATCH_DATA too.
This commit is contained in:
parent
f8762f7d3f
commit
9ec70a8877
1 changed files with 2 additions and 2 deletions
|
|
@ -358,8 +358,8 @@ connection_added (NMRemoteSettings *self,
|
|||
AddConnectionInfo *addinfo;
|
||||
const char *path;
|
||||
|
||||
if (!g_signal_handler_find (remote, G_SIGNAL_MATCH_FUNC, 0, 0, NULL,
|
||||
G_CALLBACK (connection_visible_changed), NULL)) {
|
||||
if (!g_signal_handler_find (remote, G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, 0, 0, NULL,
|
||||
G_CALLBACK (connection_visible_changed), self)) {
|
||||
g_signal_connect (remote,
|
||||
"notify::" NM_REMOTE_CONNECTION_VISIBLE,
|
||||
G_CALLBACK (connection_visible_changed),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue