mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-16 10:04:42 +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) {
|
||||
// TODO
|
||||
this->m_connectionsLock.Enter();
|
||||
|
||||
if (connection->m_refCount == 0) {
|
||||
delete connection;
|
||||
}
|
||||
|
||||
this->m_connectionsLock.Leave();
|
||||
}
|
||||
|
||||
void WowConnectionNet::Remove(WowConnection* connection) {
|
||||
|
Loading…
Reference in New Issue
Block a user