Skip to content

Fixed: zombie players (2) - #22

Merged
AmyrAhmady merged 2 commits into
openmultiplayer:masterfrom
uifdev:fix-zombie-players2
Apr 3, 2024
Merged

AmyrAhmady merged 2 commits into
openmultiplayer:masterfrom
uifdev:fix-zombie-players2

Conversation

@uifdev

@uifdev uifdev commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

This PR properly fixes the zombie player issue, as a result of incorrect usage of CloseConnectionInternal(), that is calling this function without informing the game layer (open.mp).

  1. Changed CloseConnectionInternal() calls added by open.mp to CloseConnection().
  2. Added disconnection notification packet to CloseConnection() which informs the game layer when a connection is silently closed. (If the connection isn't closed silently, the game layer will be informed by RunUpdateCycle().)

Note: placed in CloseConnection() because RunUpdateCycle() informs the game layer and then calls CloseConnectionInternal(), so placing it in CloseConnectionInternal() would result in duplicates.

uifdev and others added 2 commits April 2, 2024 19:42
Inform the game layer when a connection is silently closed by CloseConnection(). If the connection isn't closed silently, the game layer will be informed by RunUpdateCycle().
@AmyrAhmady
AmyrAhmady force-pushed the fix-zombie-players2 branch from d919d41 to adecc2f Compare April 3, 2024 02:23
@AmyrAhmady
AmyrAhmady merged commit 9c1edd8 into openmultiplayer:master Apr 3, 2024
@uifdev
uifdev deleted the fix-zombie-players2 branch April 26, 2024 14:35
Knogle pushed a commit to Knogle/RakNet that referenced this pull request Mar 6, 2026
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.

2 participants