mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tiny optimization -- don't find the entry twice.
This commit is contained in:
@@ -100,7 +100,7 @@ public:
|
||||
if (it == mMap.end())
|
||||
return;
|
||||
ptr = it->second; // prevent the WSConnection from being destroyed until we release the lock
|
||||
mMap.erase(cpClient);
|
||||
mMap.erase(it);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user