summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-11-13 16:32:38 +0100
committerThomas Haller <thaller@redhat.com>2015-11-13 16:32:38 +0100
commit349e9b5d801bb7f1618ab92186970e486fd184a4 (patch)
tree9b8fb027112d024a141a89e649565c6e855c214f
parent4f7e00f0278bb724cea79e3e759091c69d38af35 (diff)
downloadNetworkManager-349e9b5d801bb7f1618ab92186970e486fd184a4.tar.gz
fixup! wwan: rework connection flow to send PIN earlier and fix autoconnect
-rw-r--r--src/devices/wwan/nm-modem-broadband.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c
index cf6e6e080a..427f3ed695 100644
--- a/src/devices/wwan/nm-modem-broadband.c
+++ b/src/devices/wwan/nm-modem-broadband.c
@@ -1237,7 +1237,8 @@ get_sim_ready (MMModem *modem,
if (new_sim != self->priv->sim_iface) {
g_clear_object (&self->priv->sim_iface);
self->priv->sim_iface = new_sim;
- }
+ } else
+ g_clear_object (&new_sim);
if (self->priv->sim_iface) {
g_object_set (G_OBJECT (self),