mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 17:10:25 +01:00
core: avoid unexporting active-connection that is not exported
For better or worse, nm_exported_object_unexport() asserts that the
object is currently exported.
It's not clear that an active connection at this place is always
exported.
Fixes: f0e3dfdace
This commit is contained in:
parent
f0e3dfdace
commit
c8a649b3de
1 changed files with 2 additions and 1 deletions
|
|
@ -167,7 +167,8 @@ _settings_connection_removed (NMSettingsConnection *connection,
|
|||
* re-link; in that case we'd just clean the references to the old connection here).
|
||||
* Let's remove ourselves from the bus so that we're not exposed with a dangling
|
||||
* reference to the setting connection once it's gone. */
|
||||
nm_exported_object_unexport (NM_EXPORTED_OBJECT (self));
|
||||
if (nm_exported_object_is_exported (NM_EXPORTED_OBJECT (self)))
|
||||
nm_exported_object_unexport (NM_EXPORTED_OBJECT (self));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue