[Bug 91272] New: [PATCH] Fix autoconnection of accounts with always_dispatch=true

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 8 13:04:57 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=91272

            Bug ID: 91272
           Summary: [PATCH] Fix autoconnection of accounts with
                    always_dispatch=true
           Product: Telepathy
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: mission-control
          Assignee: telepathy-bugs at lists.freedesktop.org
          Reporter: martin.klapetek at gmail.com
        QA Contact: telepathy-bugs at lists.freedesktop.org

Created attachment 117009
  --> https://bugs.freedesktop.org/attachment.cgi?id=117009&action=edit
Patch

I'm using telepathy-ofono with its MC account plugin setting the ofono account
up. The ofono account has always_dispatch set to true, however when
autoconnecting on system startup where no network is available, the account
will not connect and wait for network to come up.

While autoconnecting on MC startup, it gets all the way to
"mcd_account_connection_proceed_with_reason" function where it fails the
"mcd_connectivity_monitor_is_online" check in mcd-account-connection.c:103 for
the account which then leads to the account being stuck in this state:

Presences:
   Automatic: available (2) ""
     Current: offline (1) ""
   Requested: available (2) ""
    Changing: yes

and from the Debug interface:

"mcd", 5, "mcd_account_connection_proceed_with_reason: ofono/ofono/account0
wants to connect, but we're offline; queuing it up"

...until there's a network connection. Once there is a network, everything
works just fine.

However if I understand the purpose of always_dispatch=true correctly, it
should ignore the network state and just connect.

So here's a simple patch which makes it work as expected. Now I'm not sure if
this patch is correct as I don't know the MC code that well, but it does fix
the issue of always_dispatch=true-account not being connected when there's no
network.

This patch is against version 5.16.3.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list