diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-sim.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-sim.c b/src/mm-sim.c index 1a84c7a0..aa063c9b 100644 --- a/src/mm-sim.c +++ b/src/mm-sim.c @@ -345,7 +345,9 @@ mm_sim_export (MMSim *self) static void mm_sim_unexport (MMSim *self) { - g_dbus_interface_skeleton_unexport (G_DBUS_INTERFACE_SKELETON (self)); + /* Only unexport if currently exported */ + if (g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (self))) + g_dbus_interface_skeleton_unexport (G_DBUS_INTERFACE_SKELETON (self)); } /*****************************************************************************/ |