summaryrefslogtreecommitdiff
path: root/src/mm-base-bearer.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-03-28 06:57:13 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-04-10 11:45:03 +0000
commiteebd7582bbd7a47d32838e5031a1315f15317f59 (patch)
tree248a3d09abbe85a095bcba42a8fde411e44cf705 /src/mm-base-bearer.c
parent79daa3099e1f8478b8e17d8065143bca3e38214b (diff)
base-bearer: don't run disconnection path multiple times
Diffstat (limited to 'src/mm-base-bearer.c')
-rw-r--r--src/mm-base-bearer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c
index dd4f1ef2..be702132 100644
--- a/src/mm-base-bearer.c
+++ b/src/mm-base-bearer.c
@@ -428,6 +428,10 @@ bearer_update_status (MMBaseBearer *self,
/* NOTE: we do allow status 'CONNECTED' here; it may happen if we go into
* DISCONNECTING and we cannot disconnect */
+ /* Do nothing if the status is the same */
+ if (self->priv->status == status)
+ return;
+
/* Update the property value */
self->priv->status = status;
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_STATUS]);