From e7809a2bd74c48172af29ccf201a3b761190cb37 Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Tue, 25 Oct 2022 02:26:26 +0700 Subject: [PATCH] wwan/ofono: clear current_octx on disconnect This way, we won't signal failure when "PropertyChanged" signal for an empty "Settings" eventually arrive. --- src/core/devices/wwan/nm-modem-ofono.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/devices/wwan/nm-modem-ofono.c b/src/core/devices/wwan/nm-modem-ofono.c index b1497798be..3431179bcc 100644 --- a/src/core/devices/wwan/nm-modem-ofono.c +++ b/src/core/devices/wwan/nm-modem-ofono.c @@ -290,6 +290,8 @@ disconnect(NMModem *modem, ctx->cancellable, disconnect_done, ctx); + + priv->current_octx = NULL; } static void