DescriptionFix login called twice in some cases.
Login was called twice in some cases.
The first time by the connectedChange subscriber reacting to a
WebSocket connection/reconnection. The second time only if the
credentials are available (stashed in the storage or just
provided in config) and the user is not authenticated.
AFAICT, the latter case is completely redundant, given
that the two conditions above are both true only
at the beginning of the auth process, started right
after the WebSocket is connected, so, reasonably,
when the login is already attempted by the connectedChange
subscriber.
QA:
Try to login with or without setting user and password in
config. Refresh, logout, disconnect rapi-delta, reconnect,
hack!
https://code.launchpad.net/~frankban/juju-gui/login-again/+merge/160690
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix login called twice in some cases. #
MessagesTotal messages: 4
|