aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-base-bearer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c
index 8eb37be2..8b08884d 100644
--- a/src/mm-base-bearer.c
+++ b/src/mm-base-bearer.c
@@ -250,6 +250,11 @@ bearer_update_connection_error (MMBaseBearer *self,
g_autoptr(GVariant) tuple = NULL;
if (connection_error) {
+ /* Never overwrite a connection error if it's already set */
+ tuple = mm_gdbus_bearer_dup_connection_error (MM_GDBUS_BEARER (self));
+ if (tuple)
+ return;
+
/*
* Limit the type of errors we can expose in the interface;
* e.g. we don't want QMI or MBIM specific errors reported.