Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wip/fix 243 session saving #314

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

alphapapa
Copy link
Owner

@phil-s This is intended to fix #243. A few unrelated changes are in here, which I intend to split out before merging. But to fix the bug required more extensive changes than I...well, I kind of knew it would require a lot of minor changes, which is why I've put it off for so long.

Anyway, it seems to work now, tested in a clean config with multiple accounts. Would you mind giving the patch a quick visual inspection and letting me know if anything stands out as wrong? I'm not asking you to test it. :)

@alphapapa alphapapa marked this pull request as draft October 13, 2024 03:41
@alphapapa alphapapa self-assigned this Oct 13, 2024
@alphapapa alphapapa added bug Something isn't working enhancement New feature or request priority:A labels Oct 13, 2024
@alphapapa alphapapa added this to the v0.17 milestone Oct 13, 2024
When disconnecting from a session, we now keep the slots necessary for
reconnecting, and we persist those slots.

Previously all of the session's data was discarded after writing, so
if multiple accounts were disconnected but not at the same time, the
first session to be disconnected was forgotten.

Fixes #243.

Reported-by: formula-spectre <https://github.com/formula-spectre>
@alphapapa alphapapa force-pushed the wip/fix-243-session-saving branch from edefcb5 to df91863 Compare October 13, 2024 03:47
@phil-s
Copy link

phil-s commented Oct 13, 2024

Can do, but probably not before the end of next week, if that's ok. I've lisped a bit more than I should have today already, and the next few days aren't going to be an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request priority:A
Projects
None yet
Development

Successfully merging this pull request may close these issues.

only the last disconnected session is remembered when (ement-save-sessions) is set to t
2 participants