[Bug] Connecting while a session is open shows "disconnected", opens the disconnect popup and stops Genie's Lich (Genie 4 closed the old link quietly)
Maintainers usually reply within 5 days
Assessment
This issue has not been assessed yet.
Description
What happened
Connecting while a session is already open treats the old session's closing as the session ending. This applies to the Connect dialog (switching character), #connect typed or sent by a script, and a login sent through the inbox. While the new login is under way:
- the game window prints a
disconnectedline, - the "You have been disconnected" popup opens, although the new session connects a moment later,
- the Lich that Genie started is stopped. With a Lich profile, that can be the Lich the new connect has just launched.
What you expected
As in Genie 4: the old session closes quietly and the new one logs in. Connection.Connect closes an open socket directly and does not raise EventDisconnected for it (Core/Connection.cs:143-151). The disconnected line and the popup should still appear when a session really ends.
Steps to reproduce
- Connect a character.
- Open the Connect dialog and connect another character, or the same one, or type
#connect <profile>. - A
disconnectedline appears and the disconnect popup opens while the new login goes ahead.
Environment
- OS + version: Ubuntu 24.04 arm64; the code path is the same on every OS
- Genie 5 version: seen on 5.0.0-beta.9.10.1; the same code is in v5.0.1-beta.5
- Install type: built from source
- Connection mode: Direct SGE and Lich Proxy
Logs / session capture
None needed. MainWindowViewModel handles the old link's Disconnected event the same way as a session ending: it prints the marker, opens the popup and stops Genie's own Lich. Nothing tells it apart from a new connect replacing the session.
Anything else
Searched open and closed issues for "disconnect popup connect", "disconnected switch character", "connect open session" and "Lich stopped connect": nothing matching. A fix with tests is ready and will follow as a PR.
- Dominant language
- C#
- Stars
- 2
- Forks
- 5
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenieClient/Genie5
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
GenieClient/Genie5#496 ·
Maintainers usually reply within 5 days
-
enhancement g4-regression
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GenieClient/Genie5#494 ·
Maintainers usually reply within 5 days
-
area:ui-dock enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GenieClient/Genie5#462 ·
Maintainers usually reply within 5 days
-
area:mapper bug est:<1d P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
GenieClient/Genie5#449 · 1 comment ·
Maintainers usually reply within 5 days
-
[Bug] Maps ▸ Update from Official Repo / Repair Maps give no notification of success or failurePossibly taken A pull request linked to this issue is open or already merged. Openarea:mapper area:updater bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#423 · 1 assignee ·
Maintainers usually reply within 5 days
All issues in GenieClient/Genie5
Similar issues
-
documentation good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Tool] MockAPIOpenhas-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 72/100
shanselman/TinyToolTown#956 ·
Maintainers usually reply within 2 days
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Bug]: Native build script prints a traceback when Git is missing from PATHPossibly taken @Jaisuryan-web claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KnifeLemon/Filee#1953 ·
Maintainers usually reply within 1 day