Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ClientInterface: add a function to verify (correctly) if user limit w…
…as reached (#6258) * ClientInterface: add a function to verify (correctly) if user limit was reached CS_HelloSent is a better indicator of active slots than CS_Created, which are session objects created after init packet reception Switch existing checks to ClientInterface::isUserLimitReached() Use range-based for loop for getClientIds() used function too This will fix #6254 (not the memory overhead if init is flooded)
- Loading branch information
Showing
with
18 additions
and 7 deletions.
- +13 −4 src/clientiface.cpp
- +3 −1 src/clientiface.h
- +2 −2 src/network/serverpackethandler.cpp