mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-25 15:13:34 +03:00
feat(net): implement WowConnectionNet::Delete
This commit is contained in:
1 file changed
+7
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user