mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
use erase directly for cleanupConnection
This commit is contained in:
parent
a914ec82c3
commit
285a6cc738
1 changed files with 2 additions and 4 deletions
|
@ -207,14 +207,12 @@ void Socket::clearConnections() {
|
|||
}
|
||||
|
||||
void Socket::cleanupConnection(HifiSockAddr sockAddr) {
|
||||
auto it = _connectionsHash.find(sockAddr);
|
||||
auto numErased = _connectionsHash.erase(sockAddr);
|
||||
|
||||
if (it != _connectionsHash.end()) {
|
||||
if (numErased > 0) {
|
||||
#ifdef UDT_CONNECTION_DEBUG
|
||||
qCDebug(networking) << "Socket::cleanupConnection called for UDT connection to" << sockAddr;
|
||||
#endif
|
||||
|
||||
_connectionsHash.erase(sockAddr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue