Re-enable auto-reconnect, after fixing logout.

Authored by dfaure on Feb 13 2020, 11:00 PM.

Description

Re-enable auto-reconnect, after fixing logout.

Summary:

  • Disconnect websocket in ~DDPClient to avoid auto-reconnect
  • Make logout actually work by returning true in canStart() (obvious typo)

Also, don't clear the password on logout. I want to be able to log in again
without having to type the password again. No idea why this clear() was
there.

Cleanups: remove unused signal logoutDone() and unimplemented method DDPClient::logOut

Test Plan:
Logout stays on login page, with password filled in.
Disconnecting from WIFI for a few minutes and then connecting again leads to the server
throwing us out, and ruqola reconnects.

Reviewers: mlaurent, kfunk

Differential Revision: https://phabricator.kde.org/D27387

Details

Committed
dfaureFeb 14 2020, 7:57 PM
Differential Revision
D27387: Re-enable auto-reconnect, after fixing logout.
Parents
R865:5de79625f711: Add missing file
Branches
Unknown
Tags
Unknown