Use Account.ConnectionStatus instead of Account.Connection.Status
This commit is contained in:
parent
7746dd72b7
commit
d780248e87
@ -74,7 +74,8 @@ class ConnectionManager(object):
|
|||||||
self._connections_per_account[account_path] = \
|
self._connections_per_account[account_path] = \
|
||||||
Connection(account_path, connection)
|
Connection(account_path, connection)
|
||||||
|
|
||||||
if connection.Get(CONNECTION, 'Status') == CONNECTION_STATUS_CONNECTED:
|
account = bus.get_object(ACCOUNT_MANAGER_SERVICE, account_path)
|
||||||
|
if account.Get(ACCOUNT, 'ConnectionStatus') == CONNECTION_STATUS_CONNECTED:
|
||||||
self._connections_per_account[account_path].connected = True
|
self._connections_per_account[account_path].connected = True
|
||||||
else:
|
else:
|
||||||
self._connections_per_account[account_path].connected = False
|
self._connections_per_account[account_path].connected = False
|
||||||
|
Loading…
Reference in New Issue
Block a user