A D-Bus reply to the client calling Connect() has been properly sent when
entering ready and failure states and a also on a proper disconnect when
calling __connman_service_disconnect().

But when a service enters disconnect state from either association or
configuration states, sending of the D-Bus reply has not happened.
---

v2: reply_pending takes positive error numbers, not negative ones

 src/service.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/service.c b/src/service.c
index 5c9a3db..895387d 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5373,6 +5373,9 @@ static int service_indicate_state(struct connman_service 
*service)
                        vpn_auto_connect();
 
        } else if (new_state == CONNMAN_SERVICE_STATE_DISCONNECT) {
+
+               reply_pending(service, ECONNABORTED);
+
                def_service = __connman_service_get_default();
 
                if (!__connman_notifier_is_connected() &&
-- 
1.9.1

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to