mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 12:55:58 +03:00
feat(net): implement WowConnectionNet::Delete
This commit is contained in:
parent
28184fb6fa
commit
0b30174088
@ -31,7 +31,13 @@ void WowConnectionNet::Add(WowConnection* connection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WowConnectionNet::Delete(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) {
|
void WowConnectionNet::Remove(WowConnection* connection) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user