neoLegacy/Minecraft.Client/Common
itsRevela abb18e3e12 fix: new players kicked when joining right after being whitelisted
When a new player was whitelisted while they were sitting on the join screen, their next attempt would insta-kick before the world ever loaded, and the retry after that would let them in for roughly 20 seconds before booting them with "connection closed". Two separate bugs were colliding.

The first kick was a stale cancel flag on the client. When the server rejects a join, the "Connecting to host..." screen tears down, and its teardown path fires the cancel callback defensively. That flag would latch on without ever being consumed, so the very first tick of the next join attempt saw it and immediately closed the fresh connection. Clearing the flag when a new join starts prevents this.

The second kick was an orphan on the server. When the first failed join's TCP dropped, its slot got recycled for the next successful join, but the half-built login object from the broken attempt was still in the pending queue. 30 seconds later its "login took too long" timer fired, and the disconnect packet it tried to send was routed to whoever currently held that slot, which was now the new in-world player. It landed on their live socket and kicked them. Telling the game's Socket layer about the TCP drop lets the orphan clean itself up, and refusing to write on an already-closing socket stops any late packet from leaking into the recycled slot.
2026-04-11 08:13:46 -05:00
..
Audio fix: linux cross-compiling 2026-04-08 12:44:56 +03:00
Colours add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
DLC add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
DummyTexturePack/res Initial commit 2026-03-01 12:16:08 +08:00
GameRules add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Leaderboards add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Media removed backup arc file 2026-04-01 03:50:21 -05:00
Network fix: new players kicked when joining right after being whitelisted 2026-04-11 08:13:46 -05:00
res Move project to CMake (#781) 2026-03-17 16:39:22 -05:00
Telemetry add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Trial add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Tutorial Revert "fix: tutorial world" 2026-04-08 13:00:44 -05:00
UI chore: sync credits screen and Star History with upstream org rename 2026-04-11 02:01:26 -05:00
XUI add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
zlib Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
App_Defines.h feat: uncapped FPS when VSync off, fix graphics settings bitmask collision 2026-03-30 15:36:08 -05:00
App_enums.h Add VSync and fullscreen settings, fix swap chain resize and revert lighting changes 2026-03-19 11:04:49 -05:00
App_structs.h Save FOV value to settings (#670) 2026-03-06 16:38:16 -06:00
C4JMemoryPool.h Initial commit 2026-03-01 12:16:08 +08:00
C4JMemoryPoolAllocator.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Console_Awards_enum.h Initial commit 2026-03-01 12:16:08 +08:00
Console_Debug_enum.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Console_Utils.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
ConsoleGameMode.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
ConsoleGameMode.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Consoles_App.cpp add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Consoles_App.h add support for linux clang cross compiles 2026-04-08 12:03:15 +03:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.h Fix split-screen UI wrong positioning on window resize (#989) 2026-03-08 22:16:58 -05:00
Potion_Macros.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
xuiscene_base.h Initial commit 2026-03-01 12:16:08 +08:00