feat(net): implement WowConnectionNet::Delete

This commit is contained in:
fallenoak 2023-02-20 17:41:49 -06:00
parent 28184fb6fa
commit 0b30174088
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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) {