mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
feat(net): implement WowConnectionNet::Delete
This commit is contained in:
parent
28184fb6fa
commit
0b30174088
1 changed files with 7 additions and 1 deletions
|
|
@ -31,7 +31,13 @@ void WowConnectionNet::Add(WowConnection* connection) {
|
|||
}
|
||||
|
||||
void WowConnectionNet::Delete(WowConnection* connection) {
|
||||
// TODO
|
||||
this->m_connectionsLock.Enter();
|
||||
|
||||
if (connection->m_refCount == 0) {
|
||||
delete connection;
|
||||
}
|
||||
|
||||
this->m_connectionsLock.Leave();
|
||||
}
|
||||
|
||||
void WowConnectionNet::Remove(WowConnection* connection) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue