mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 18:30:11 +01:00
team: fix a crash on team devices (rh #1013593)
teamd was being watched using g_bus_watch_name(). But when the NM team device was destroyed NM tried to remove the watcher with g_source_remove() instead of g_bus_unwatch_name(). Thus the watcher was not removed and teamd_dbus_appeared() was called on disposed device. https://bugzilla.redhat.com/show_bug.cgi?id=1013593#c28 Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
e4fc7440cc
commit
23e90ee76d
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ teamd_cleanup (NMDevice *dev)
|
|||
NMDeviceTeamPrivate *priv = NM_DEVICE_TEAM_GET_PRIVATE (dev);
|
||||
|
||||
if (priv->teamd_dbus_watch) {
|
||||
g_source_remove (priv->teamd_dbus_watch);
|
||||
g_bus_unwatch_name (priv->teamd_dbus_watch);
|
||||
priv->teamd_dbus_watch = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue