mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 21:35:46 +00:00
client_port: Make all data members private
These members don't need to be entirely exposed, we can instead expose an API to operate on them without directly needing to mutate them We can also guard against overflow/API misuse this way as well, given active_sessions is an unsigned value.
This commit is contained in:
parent
826b1394e8
commit
da2f00ab7d
3 changed files with 21 additions and 7 deletions
|
@ -27,7 +27,7 @@ ServerSession::~ServerSession() {
|
|||
|
||||
// Decrease the port's connection count.
|
||||
if (parent->port)
|
||||
parent->port->active_sessions--;
|
||||
parent->port->ConnectionClosed();
|
||||
|
||||
// TODO(Subv): Wake up all the ClientSession's waiting threads and set
|
||||
// the SendSyncRequest result to 0xC920181A.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue