base-bearer: don't run disconnection path multiple times

This commit is contained in:
Aleksander Morgado
2020-04-10 11:45:03 +00:00
parent 79daa3099e
commit eebd7582bb
+4
View File
@@ -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]);