Skip to content

Fix friend presence updates during concurrent logins - #946

Open
VDraven wants to merge 1 commit into
MUnique:masterfrom
VDraven:codex/fix-friend-presence
Open

VDraven wants to merge 1 commit into
MUnique:masterfrom
VDraven:codex/fix-friend-presence

Conversation

@VDraven

@VDraven VDraven commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Concurrent logins can corrupt the online-friend dictionary, throw IndexOutOfRangeException, and leave online friends shown as Offline. Use ConcurrentDictionary with atomic registration and removal. Live friend-status retest passed.

Mail note (separate issue): MuMain still declares a 60-byte subject (constant), but OpenMU AddLetter sends 32 bytes. The client reads the state at byte 106 instead of 78, which can hide letters. Please choose a client-side or compatible server-side fix to align the layouts; this PR only fixes friend presence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant